
Announcements
Hello: I currently have a flow with a trigger "when an item is created". This flow is created to get approval from manager when item is created on SharePoint calendar and when approved, email should be sent to requestor stating so and meeting invite sent to both manager and requestor with time off dates. And if rejected, requested again should be informed via email and and item deleted from sharepoint calendar. All of this work perfectly as should.
However, I needed to modify my trigger to "when item is created or modified" in order to be able to get approvals for both newly created and modified items.
Once I change the trigger with all other steps remaining same I get 8 different errors including a possible LOOP WARNING.
I have recreated the flow and mirrored all steps above and it runs when test but at the "Start an approval" stage it errors out and managers start getting requests of same item over and over.
I have added a trigger condition (see below) to stop the loop but no change:
@not(equals(trigger Outputs()?['body/Editor/Email'],'*** Email address is removed for privacy ***'))
I have search the community and seen similar issues but nothing specific as what I am looking to achieve. I tried to add a "Compose" function before "start and wait for approval" but I am not getting it right. I need help breaking the loop, any assistance will be highly appreciated.
See new flow thats having issues below:
If need be I can expand needed items but like said error begins from "start and wait for approval" when run a test.
Check this blog and let me know if you still are facing issues.
Trigger conditions - just what I needed - Powering your Apps (sudeepghatak.com)
I think your trigger condition needs some adjustments.