I'm only a couple of months into my power apps experience. So, the question might be basic, but still, I'm struggling.
I've been trying for a while to get this code to filter all items in a table and edit a specific field for all matching filter. Don't know if it is syntax or I'm using the functions wrong...
ForAll(
Filter(
// Filter out the records that contains the SetID in variable selectedSet
BatteryTbl, SetID = selectedSet
),
Patch(
BatteryTbl,
LookUp(BatteryTbl, BatteryID = ThisRecord.BatteryID),
{
// Set the Location field of record to the selected item in a dropdown box.
Location: locationdd.SelectedText
}
)
)
Any help would be appreciated.