Logic Apps中Office 365审批邮件超时触发升级通知的实现咨询
Absolutely, you can build this escalation workflow using just Logic Apps and the Office 365 Approval connector—no need for Flow or external tools. Here's a practical, step-by-step approach to implement your desired behavior:
Step 1: Configure the Approval Action with a Short Timeout
First, in your existing "Start and wait for an approval" action, set the Timeout value to PT30M (this is ISO 8601 format for 30 minutes). This tells Logic Apps to stop waiting for a response after 30 minutes, aligning perfectly with your escalation timeline.
Step 2: Add Parallel Branches for All Scenarios
Right after the approval action, add a Parallel Branch control. This lets you handle three outcomes simultaneously:
- Approved Branch: Add a Condition action that checks if the approval's
OutcomeequalsApproved. If true, trigger your Runbook to shut down the VM. - Rejected Branch: Add another Condition checking if
OutcomeequalsRejected. If true, send your "Operation Rejected" notification email. - Timeout/Escalation Branch: Add a Condition checking if
OutcomeequalsTimeout. When this triggers (meaning no response after 30 minutes), send an escalation email to your designated contact.
Step 3: Refine the Escalation Logic (Optional)
If you want extra assurance that the escalation only fires when no response was received, you can add a quick check to verify the approval's Response Details are empty. This helps avoid false triggers if the approval somehow completes right at the 30-minute mark.
Key Notes
- Make sure your Office 365 connector has the necessary permissions to send emails and manage approvals.
- For testing, temporarily set the timeout to
PT1M(1 minute) to validate the escalation flow without waiting 30 minutes. - This approach keeps your workflow self-contained within Logic Apps—no need to migrate to other tools.
内容的提问来源于stack exchange,提问作者Mohan Ravindran

