Hi,
I'm using Patch to update a SharePoint List.
After saving the list, I want to call a flow with the just created List ID as parameter.
Unfortunately I don't get the new created ID: I get the ID the second last ID.
So my code is:
Patch(
TestList,
Defaults(TestList),
Form1.Updates
);
Set(varID,Last(TestList).ID);
I also already tried to set a "Refresh(TestList)" in between, but it didn't solved the problem.
If I use the same function in really small Apps, it works fine. So maybe it depends on the size of the SharePoint List?
My last option would be to use UpdateForm/LastSubmit, but that would force me to "redesign" many steps.