Hi All,
i have created a collection called causes as follows:
ClearCollect(CausesCollection, {Cause: ""});
i then have a button where i add items to this collection from a text input.
In the end i'm patching this to a shareoint list using the following code:
ForAll(CausesCollection, Patch(CausesList,Defaults(CausesList),{Cause:Cause}))
however when i look at CausesCollection it does not contain list item ID, i was able to create a new collection which does contain IDs as follows:
ClearCollect(CollectionOfId, ForAll(CausesCollection, Patch(CausesList,Defaults(CausesList),{Cause:Cause})))
however this just does not seem right.
is there a different way of getting Patch ID using ForAll function?
Appreciate your help.
Thanks
You are doing it right. Might seem a little odd, but it is the way. The Patch function will return the new record you create. If you want to capture it, you need to collect it - which you are doing.
User | Count |
---|---|
195 | |
123 | |
86 | |
48 | |
40 |
User | Count |
---|---|
280 | |
165 | |
139 | |
80 | |
76 |