I am adding a new record to my SharePoint List:
Patch(MyCustomList, Defaults(MyCustomList), { Title: "CustomTitle" });
How can I be sure that this record has been / will be successfully added to my list?
My thought so far:
You use the Patch() in a variable and then test the variable to see if a record is created and it if has an ID.
Example of setting a variable using the results from Patch() :
Set(gvNewItem, Patch(PowerAppsDemo, Defaults(PowerAppsDemo),{Title:"Test"}))
Hi @sch,
What @Jeff_Thorpe suggested works, and you could add a Label, set its Text property to:
gvNewItem.ID
You could check if the ID number in this Label control is changed after you run the Patch to make sure that the new record is added.
Regards,
Mona
User | Count |
---|---|
227 | |
101 | |
93 | |
56 | |
30 |
User | Count |
---|---|
288 | |
116 | |
109 | |
62 | |
58 |