I am trying to update values in a collection based on another collection.
This my code that I am currently executing on a button press.
ClearCollect(
TestList,
{Parameter: "ABC"},
{Parameter: "DEF"}
);
ClearCollect(
colParamsinB,
CustomerComponentB
);
ForAll(
colParamsinB,
If(
LookUp(
TestList,
Parameter = ThisRecord.Parameter,
true
),
Patch(
CustomerComponentB,
First(
Filter(
CustomerComponentB,
Parameter = ThisRecord.Parameter
)
),
{Required: false}
)
)
)
I would like the required part to be updated for each parameter that is in the test list.
They both match the test list. At the moment it is updating the first row of the collection which is not one of the parameters in the testCollection. I have tested each section in isolation
I am relatively new to power apps but this would be very simple logic in python which is what I am used to.