Cheat Sheets/Power Apps/Collect
Power Fx function

CollectPower Fx function reference

Add rows to a collection.

Syntax

powerfx
Collect( DataSource, Item1 [, Item2, ... ] )

Examples

powerfx
Collect(colCart, {Item: "Pen", Qty: 2})
Row added
powerfx
Collect(colCart, {Item: "Pen", Qty: 2, Price: 1.5})
powerfx
Collect(colCart, ForAll(galProducts.AllItems, {Item: Title, Qty: 1}))

Common mistakes & gotchas

Related Power Fx functions

From Collections & local storage

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet