cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
Post Patron
Post Patron

OnStart, populate collection from datasource: is this possible?

Hello

Is it possible to:

1 populate a collection 'OnStart' from another datasource eg an Excel file, and then

2 to use that collection as the datasource for the app?

The app data would be patched to a new datasource (not the collection).

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Englishweb ,

 

Yes, it is possible to update one data source using the data from another data source. But you must have both data sources connected to this app. And OnStart of the app, collect the data from Excel table to a collection, then use a Patch function to update the collection to the 2nd data source.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
DanishIslam
Resolver I
Resolver I

Hi Englishweb,

 

Yes, its possible to collect data from a data source on start of the app and then use it later.

 

Hello @DanishIslam 

Thanks for your quick reply,

Could you possibly explain how to load data into a collection OnStart, from Excel?

Sorry if its an obvious question!

 

Hi,

 

You can follow this link on how to utilize Excel with PowerApps.

 

https://www.myonlinetraininghub.com/powerapps-excel-introduction

 

Hope it helps.

Hello  @DanishIslam 

Thanks very much for your response, but my question was about the loading of a 'Collection' OnStart as the datasource, rather than using Excel directly. Perhaps I've misunderstood your reply.

v-monli-msft
Community Support
Community Support

Hi @Englishweb ,

 

Yes, it is possible to update one data source using the data from another data source. But you must have both data sources connected to this app. And OnStart of the app, collect the data from Excel table to a collection, then use a Patch function to update the collection to the 2nd data source.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello

So, here's the scenario:

1) I create MyCollection, which collects data OnStart from a datasource (Excel file) to run the app

2  I use the Patch function to update a 2nd data source (Another Excel file)  

(Both datasources are connected to the app)

 

My question: Do all users need to have access to both Excel files if the App is running from MyCollection?

Thanks

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,833)