I've made notification to get an email if WF has failed, skipped or timed out and it works fine after "Each form" step.
How to make the same for the first two steps in my case below?
Another question is how to even simulate an error for the first two steps:
Step 1
Step 2
Complete WF with simulated error but only for the "Each form" step:
Just wanted to be sure that complete WF is checked for the errors and notification is triggered for the each one.
@creativeopinion please see my new post "How to get notified if WF is not triggered" to check the last error.
Tnx for advise but I will live apply to each for now as it works.
@mmar0605 What is the error you are getting. As mentioned in my first response, you don't need the Apply to Each (Each Form in your case) action to loop through the list of responses. The When a new response is submitted trigger returns only one response.
Looping through each attachment:
@mmar0605 Can you expand your EachForm action? Are you looping through Each Form or Each Attachment?
Since you are using the When a new response is submitted, an Apply to Each action isn't required to loop through each form—you are only ever returning a single form.
You might also be interested in a new YT Tutorial I recently uploaded: How to Get a Microsoft Form RSVP Response into a SharePoint List
Unfortunately I don't cover how to get attachments for a form—I cover the following in this video tutorial:
✅ How to get a Microsoft Form Response into SharePoint
✅ How to get a Microsoft Form ID
✅ How to get a Microsoft Form response
✅ How to Build a Microsoft Form with Conditional Fields
✅ How to used Branching in Microsoft Forms
✅ How to format Microsoft Form multiple choice responses for a SharePoint multi-choice column
✅ How to parse a Microsoft Form multiple choice response as string of text
✅ How to convert a text response to a number
✅ How to use the Switch action
✅ How to create a custom email confirmation for a Microsoft Form submission
✅ How to Create a Custom View in a SharePoint list
✅ How to use the Compose Action
✅ How to write Power Automate Expressions
Hope this helps!
If I helped you solve your problem—please mark my post as a solution ✅. Consider giving me a 👍 if you liked my response! If you're feeling generous— ☕️ Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion |
The best thing to do is put all your actions in a scope, and then catch the error from the scope. That way if any item fails the exception will be caught.
Though FYI you can't exception handle the trigger, as that will simply not run if there is an exception with it.
Ive written a blog that explains more here https://dev.to/wyattdave/exception-handling-in-power-automate-4c4h
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional