Moshin Khan
Moshin Khan

Reputation: 195

PowerAutomate + SharePoint List - When an item is created - Multiple items created immediately and single instance noticed leading to issues

I have a SharePoint list "ComputerAccessServices". I have a power automate cloud flow which triggers on "When an item is created" on the mentioned SharePoint list. The flow has loops and conditions.

enter image description here

Now Testing:

Scenario 1: Creating multiple items in the list after a minute or so. The flow works perfectly fine. Each new item created after a minute or so triggers a new instance of the flow. As expected. enter image description here

Scenario 2: Creating multiple items in the list but right immediately after the first one was created. Basically, created one item in the list and then created second item immediately in the same list. This triggered only one instance of the flow and the data in the loops all messed up. This one flow is running for two items that was created. Is there something I'm missing when the trigger "When an item is created" is run? I'm really stuck with this issue as it can lead to big time data manipulation and wrong details captured in the flow and lists.

Flow

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 1492

Answers (1)

Moshin Khan
Moshin Khan

Reputation: 195

Managed to figure this issue out. It's the trigger that needs to be set to "Settings"->"General"->"Split On"->"On". This ensures that multiple items added to the list at once splits the entries into multiple runs instead of just one run. Had to remove the loops which took the output from the "When item is created". Now the connectors are taking trigger output values.

Hope this will help someone save some time. I have struggled for few days trying to understand the settings and behavior of the flow.

enter image description here

Upvotes: 0

Related Questions