I have a situation where a data source is getting filtered by multiple conditions - however, my stakeholder for the PowerApp keeps changing what the conditions are. I would like to give them the power to change them using a SharePoint list instead of the app getting updated. The way I imagined this might work is with a ForAll which goes over each condition in the SharePoint list (code below). However, this doesn't work as I get the error 'expected boolean', since ForAll returns a table and not a boolean result (it is, however, a table of boolean results...)
Does anyone know how I can achieve what I'm after here?
Filter(
AddColumns('My Data Source', CreatedDate, Created),
ForAll('My Conditions List', Status.Value = ConditionStatus && CreatedDate < DateAdd(Now(), SLA, Unit))
)
ConditionStatus, SLA, and Unit are a text, number, and text value in the 'My Conditions List' data source. Some example data might be "New", 24, and "hours", or "Assigned", 3, and "days".