Cheat Sheets/Power Apps/ClearCollect
Power Fx function

ClearCollectPower Fx function reference

Clear, then refill a collection.

Syntax

powerfx
ClearCollect( Collection, Item1 [, Item2, ... ] )

Examples

powerfx
ClearCollect(colStaff, Filter(Staff, Active))
Collection reloaded
powerfx
ClearCollect(colStaff, Filter(Staff, Active = true))

With no items supplied, this just empties the collection.

powerfx
ClearCollect(colCart)

Common mistakes & gotchas

Related Power Fx functions

From Collections & local storage

Used in these tutorials

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