Hi,
I've created a power automate flow working off a SharePoint list. When the 'Stage' is updated to 'Declined' I want the flow to update the 'Declined Date' for that item with "today's" date.
The flow is set up and works! However updating the stage to declined is causing the flow to run twice. This is the only update I'm doing to that item when testing.
The trigger for my flow is 'When an item or a file is modified' and I'm using the trigger condition: @equals(triggerOutputs()?['body/Stage/value'],'Declined')
I thought that maybe the reason for it triggering twice, was because setting the stage to declined would trigger it the first time, and enter the date (as expected). Then the action of the flow updating the 'Declined Date' field also satisfies the trigger condition and it runs again although this time nothing happens (as I would expect due to a condition further on in the flow checking if the stage has declined and if so "do nothing").
To try to combat it running a second time I added a second trigger condition: @equals(triggerOutputs()?['body/Declined Date'],null), but the flow still runs twice. Can anyone tell me why? It's driving me mad!