I'm currently creating multi level approval flows (the item is created then goes for Head of Service approval and then Director approval), which I've broken into separate flows for each level of the approval process and the responses update a SharePoint list.
Each flow starts with a 'When an item is created or modified' trigger, which I want to only trigger when it hasn't already been through that stage of the approval process or if the person who has raised the request has submitted more information. It seemed like it was working, but I tried to break it apart and then it got stuck in a loop. I've tried rewriting it, but it's not valid. Can anyone help me with getting this trigger condition to work?
@OR(and(equals(triggerOutputs()?['body/HoSApproval'],'More information required'),equals(triggerOutputs()?['body/Resubmitted'],'Yes')), and(equals(triggerOutputs()?['body/HoSApproval'],null)))