PL-400 · Question #445
You have a Power Automate flow. The flow uses an HTTP action to connect to a web service and update a Microsoft Dataverse record with the result. You must modify the flow to send an email if the web…
The correct answer is A. Configure the send email step to run when the previous step fails. C. Add a send email step after the HTTP step. Adding a "Send an email" action after an HTTP step and configuring the "run after" setting to trigger only on failure will send an email when the HTTP action fails. To implement this, first add the email action, then select the three-dot menu for the HTTP action and choose…
Question
Options
- AConfigure the send email step to run when the previous step fails.
- BAdd a send email step after the update Dataverse record step.
- CAdd a send email step after the HTTP step.
- DUpdate the HTTP step settings and set the retry policy to: None.
How the community answered
(56 responses)- A77% (43)
- B7% (4)
- D16% (9)
Explanation
Adding a "Send an email" action after an HTTP step and configuring the "run after" setting to trigger only on failure will send an email when the HTTP action fails. To implement this, first add the email action, then select the three-dot menu for the HTTP action and choose "Configure run after" to specify that the email action should run if the HTTP step has "failed", "is skipped", or "has timed out". How to set up email notification for HTTP failure [C] 1. Add the "Send an email" action: After your HTTP action, add a new step and search for a "Send an email" action (for example, using the Outlook connector). 2. Fill in the email details: Configure the recipient, subject, and body of the email. You can use dynamic content from the HTTP action (even though it failed) or other preceding steps to provide context about the failure. [A] 3. Configure the "run after" setting: Click on the three-dots menu for the "Send an email" action. Select Configure run after. By default, the "run after" setting is for "is successful." Uncheck this box. Check the boxes for has failed, is skipped, and has timed out. 4. Test your flow: When the HTTP action fails, the email action will now run, and you will receive https://learn.microsoft.com/en-us/power-automate/guidance/coding-guidelines/error-handling
Community Discussion
No community discussion yet for this question.