#canvas #powerapps #powerautomate #dynamic #collection #d365 #tutorial #learning #powerplatform #powerapps
Collection: In a canvas app, a collection typically refers to a temporary dataset that you can create and manipulate. It allows you to store and work with data in memory without necessarily saving it to a permanent data source (like a database). Collections are often used for scenarios where you need to perform operations on data before saving it or displaying it in the app. For example, you might create a collection to store results from a database query, or to aggregate data from different sources.
ClearCollect(CollectionName, DataSource)
Manipulating Collection Data: You can update, delete, or modify records within a collection using various functions provided by PowerFX. For instance, to update a record in MyCollection where ID equals 2:
UpdateIf(MyCollection, ID = 2, { Name: "Updated Name", Age: 27 })