web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Include collection to ...
Power Apps
Answered

Include collection to include data in app design

(0) ShareShare
ReportReport
Posted on by 1,346

Hi everyone

 

Is there a quick way to include a collection (including data) in the design by default, so that the first time the app is launched on a device it has this data without making any data source or API calls?

 

 

Thank you everyone

Categories:
I have the same question (0)
  • Verified answer
    v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @DavesTechTips,

     

    You always need to use the Collect() function to create a collection within your app. 

     

    Collect( DataSource, Item, ... )

    • DataSource – Required. The data source that you want to add data to. If it does not already exist, a new collection is created.
    • Item(s) - Required. One or more records or tables to add to the data source.

     

    You could set the OnVisible property of the first screen of your app with above formula so that it will create a collection as long as the first screen load.

     

    For your reference:

    https://powerapps.microsoft.com/en-us/tutorials/create-update-collection/

    https://powerapps.microsoft.com/en-us/tutorials/function-clear-collect-clearcollect/

     

    Regards,

    Mona

  • Dawidvh Profile Picture
    1,346 on at

    Thank you.

     

    Now with the onstart function on the first screen of the app, this makes it even more viable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard