I am trying to add more items to Location property but unable to via Patch or Collect
ClearCollect(
incomingPeople,
{
Id: 10,
Locations: [{Geography: "UK"}]
}
);
Clear(selectedPeople);
ForAll(
incomingPeople,
Collect(
selectedPeople,
{
Id: Id,
Locations: ForAll(
Locations,
{Geography: Value.Geography}
)
}
)
)Attempt 1 - fail
Collect(LookUp(selectedPeople,Id=10).Locations, {Geography: "France"})Attempt 2 - fail
Patch(LookUp(selectedPeople,Id=10).Locations,
// not sure what to put as 2nd param,
{Geography: "France"})Another attempt - fail
Patch(selectedPeople
, LookUp(selectedPeople,Id=10),
{Locations2:ForAll([{Geography:"France"}], {Geography:Value.Geography})})