Hi,
I need advice to understand how power automate processes its flows that are triggered by a sharepoint datasource with trigger 'when an item or file is modified'.
I have a spreadsheet with a unique number column which needs to increment for each new row added.
So if I have this column:
UniqueNo
1
2
3
I need the flow to add 4 for the next row. I have the logic in place for this.
I get the column values of UniqueNo into an array and get the max value and add 1.
This works fine.
The problem seems to be the trigger.
I have a powerapp connected to this sharepoint approvals list and it allows approvers to approve requests. When they approve a request, the app updates a status column in the main sharepoint approval list to 'approved' and the flow runs based on this change (see trigger of the flow above).
I'm finding that the flows, instead of running sequentially are running in parallel and the change from the first approved request hasn't been processed in spreadsheet so both requests a (first) and b (second) get the same unique number (4 in the above case).
Is this expected behaviour? Unless the flows are running in sequence but very close together such that there isn't enough time for sequential numbers to be created.
If anyone has had this issue or has any advice on how to handle it I would be most grateful.
Regards,
Daniel