This Power Apps tutorial explains how to create a collection OnStart of a Power Apps.
Here, I will describe Power Apps Collection OnStart, and I will also show you every step of how to create a Power Apps Collection OnStart manually.
I will also help you to create a Power Apps Collection OnStart using a SharePoint list.
Power Apps OnStart Property
Power Apps OnStart Property runs when the user starts a Power Apps app. With the help of the OnStart property, the user can get and store that data in the collection by using the collect function.
How to Create a Collection OnStart of a Power Apps
Here, I will show you how to create a Power Apps collection OnStart using two ways:
- Create a collection OnStart of a Power Apps manually [without any data source]
- Create a collection OnStart of a Power Apps using the SharePoint list
Create a Collection OnStart of a Power Apps [Manually]
Here, I will show you how to create a Power Apps collection OnStart using the data manually.
I have a Power Apps canvas app related to furniture delivery. The app has a gallery control; when the user OnStart an app, it will display the furniture arriving soon.

Follow the below steps to achieve this:
- Create a Power Apps blank canvas app.
- On the screen, insert two image controls of the furniture and turn off the visible property of both images.

- In the Tree view, Click on the App [left-hand side] -> Select the OnStart property and apply the code below:
OnStart =
Collect(
colNewlyFurinitureArrived,
{
Furniture: "Nest Sofa",
'Arriving Date': "08/09/2023",
Image: Sofa
},
{
Furniture: "Dining Table",
'Arriving Date': "11/09/2023",
Image: 'Dining Table'
}
)
Where,
- Collect:- Collection function name.
- colNewlyFurinitureArrived:- Provide your collection name.
- Furniture, Arriving Date, Image: These are the columns where the new types of furniture, arriving date, and image will be stored.

- Click on the App, select the More options (…) -> Then click on Run OnStart

- On the left-hand side, click on the Variables (x) -> Expand the Collections -> Then select the Collection name, click on the More options (…) -> Then click on View Table.

- We can see that the Power Apps collection will be created without using any data source.

Now, we will display the Power Apps collection using a Flexible height gallery control.
- Insert the Flexible height Gallery, select the Items property, and then provide the code as the collection name:
Items = colNewlyFurinitureArrived
Where,
- colNewlyFurinitureArrived: Created Power Apps collection name

- Now, the gallery control will be connected to a created Power Apps collection as shown below:

This is how to manually create a Power Apps Collection OnStart [without using any data source].
Create Power Apps collection OnStart Using SharePoint List
Here, I will show you how to create a Power Apps collection OnStart using a SharePoint list.
I have a SharePoint Online list regarding [iPhone Offers], which has different fields like:
Fields Name | Data Type |
---|---|
iPhone ID | Title |
Models | Choice [iPhone 14pro Max, iPhone 14, iPhone 13, iPhone 12, iPhone SE] |
Price | Currency |
Offer | Single line of text |
iPhone Image | Image |
Offer Closes by | Date and time |

Using that SharePoint list, we will create a Power Apps collection using the OnStart property.
- Create a Power Apps blank canvas app.
- Click on the Connect to data from the middle of the Screen page -> A dialogue box will appear [left-hand side], Click on the Add data.

- Now expand the Connectors -> Then select the data source as SharePoint -> then select a SharePoint site, to which you want to connect.

- Now, select the SharePoint list, Then click on the Connect button. Now, the SharePoint list will be connected to a Power Apps canvas app.


- In the Tree view, Click on the App [left-hand side] -> Select the OnStart property -> Then apply the SharePoint list collection formula.
OnStart = Collect(coliPhoneOffers,'iPhone Offers')
Where,
- coliPhoneOffers: Provide your Collection name.
- iPhoneOffers: SharePoint list name.

- Click on the App, select the More options (…) -> Then click on Run OnStart

- On the left-hand side, click on the Variables (x) -> Expand the Collections -> Then select the Collection name, click on the More options (…) -> Then click on View Table.

- Now, we can see that the Power Apps collection will be created from a SharePoint list as shown below:

Now, we will display the Power Apps collection from a SharePoint list using horizontal gallery control.
- Insert the Horizontal Gallery, Select the Items property, and then provide the code as the collection name:
Items = 'iPhone Offers'
Where,
iPhone Offers: Created Power Apps collection name

- Change the Layout section:
Layout = Tile and subtitle on overlay
- Now the gallery control looks like the below image:

- Click on the Offer field -> In the Properties pane, change the Color property to black and the Fill property to green as shown below:

When the user opens or runs the app, they should receive an iPhone offer which are available as shown below:

We can create a Power Apps collection using the SharePoint list as a data source by app OnStart property.
Also, you may like some more Power Apps tutorials:
- Power Apps Collection GroupBy
- Remove Multiple Columns From Power Apps Collection
- How to Remove Items from a Power Apps Collection?
- Power Apps Collection vs Table
Conclusion
Here, I have covered Power Apps Collection OnStart; a user can get and store that data in the collection when they run or start the app using the collect function.
I have explained every step of creating a Power Apps collection manually[without data source] using the app OnStart property using the collect function and also shown you how to display that data using a Flexible height gallery control.
Finally, I have described how to create a Power Apps collection using a data source of SharePoint list using the app OnStart property using the collect function and also shown you how to display that data using a Horizontal gallery control.

Preeti Sahu is an expert in Power Apps and has more than 6 years of experience working with SharePoint and the Power Platform. As a Power Platform expert for Power BI, Power Apps, Power Automate, Power Virtual Agents, and Power Pages, she is currently employed with TSinfo Technologies. She is the author of the book Microsoft Power Platform A Deep Dive. She also made a big technical contribution to SharePointDotNet.com in the form of articles on the Power Platform. She enjoys traveling and spending time with her family in her spare time.