Introduction to collections in PowerApps

Collections in PowerApps let you keep data within your app, handy for times when users are offline or have a weak connection. SharePoint lists have some restrictions on the queries you can run. With collections, you can run more complicated queries, mix data from different places, and add custom business rules easily.

Now we will see how to create a PowerApps Collection from the SharePoint list.

Syntax

Collect(CollectionName, SharePointListName)

Here

  1. Collect: This is the PowerApps function name used to create a collection.
  2. Collection Name: The name of the collection that the user will create.
  3. SharePoint List Name: SharePoint list name which the user wants to store records in the collection.

Steps to create a collection using a point list


Create a SharePoint list and insert records

Create a new blank canvas app in PowerApps

Connect a new or existing SharePoint data source

Add the SharePoint list to your app

Insert a PowerApps button input and apply the list collections code

Save and preview the app and then tap the button