cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: OnStart, populate collection from datasource: is this possible?

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
Highlighted
Resolver I
Resolver I

Re: OnStart, populate collection from datasource: is this possible?

Hi Englishweb,

 

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

 

Highlighted
Post Patron
Post Patron

Re: OnStart, populate collection from datasource: is this possible?

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!

 

Highlighted
Resolver I
Resolver I

Re: OnStart, populate collection from datasource: is this possible?

Hi,

 

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

 

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

 

Hope it helps.

Highlighted
Post Patron
Post Patron

Re: OnStart, populate collection from datasource: is this possible?

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.

Highlighted
Community Support
Community Support

Re: OnStart, populate collection from datasource: is this possible?

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

Highlighted
Post Patron
Post Patron

Re: OnStart, populate collection from datasource: is this possible?

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,451)