Hi all,
I'm having trouble with a Patch operation from within PowerApps and I hoped someone here could help me.
I have a collection (MyCollection) with a column containing an ID (CollectionID).
Using a ForAll loop, I'm trying to Patch a choice column ('My Parameter') in each record of a Dataverse Table(MyDataverseTable), where the column 'Dataverse ID' is equal to the CollectionID of the current item being iterated in MyCollection.
So, if the CollectionID of the current record is 1234, it should patch the 'My Parameter' column of the record with the 'Dataverse ID' of 1234.
I've tried permutations of things like:
ForAll(
MyCollection,
Patch(MyDataverseTable,
LookUp(MyDataverseTable,
'Dataverse ID' = Text( MyCollection[@Collection_ID] )
),
{'My Parameter':'My Parameter (MyDataverseTable)'.Yes}
)
);
It seems however, that the CollectionID of the Collection record is not accessible inside the LookUp.
The code does not throw an error, it simply seems to do nothing.
What am I doing wrong here?
Thanks for any input!