web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Start an appvoval proc...
Power Automate
Unanswered

Start an appvoval process and send email

(0) ShareShare
ReportReport
Posted on by 4

Hi,

I'm trying to find out why my flow doesn't work anymore?

It was working 2 weeks ago and no modification was done unless the email adress of the Assigned to at the Start an approval step.

Now I've got a Failed status and the error is : 

The execution of template action 'For_each' failed: the result of the evaluation of 'foreach' expression '@body('Start_an_approval')?['body']?['responses']' is of type 'Null'. The result must be a valid array.

 

JacB_1-1694205436410.png

JacB_2-1694205497460.png

 

Does anyone have an idea ?

 

Categories:
  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    Hello and sorry you are having this issue,

     

    Question: Are you recording each of the responses?

     

    I am only asking because it is possible that responses can be NULL, if there is a time out or other issue.

    If you only care about the Outcome, then I would change the check to Outcome and the issue should go away, or if you need to track each response, then you should add a NULL check before you try to you is, and still check the Outcome to verify if it was approved or not.

     

    I wonder if there are people for whom are assigned into the request (approvers) whom are now maybe not in the company anymore? Try to validate that everyone getting it is available / accurate still.

    Cheers
    --------------------------------------------------------------------------------
    If I had answered your question, please mark your post as Solved
    If you like my post please give it a thumbs up
    Thanks
    Michael
    https://gernaeysoftware.com

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @FLMike 

     

    One question, if approval part got timeout, does the flow itself would result in error due to the approval timeout ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • JacB Profile Picture
    4 on at

    Hi,

     

    Yes, I need to record the information in a SharePoint list.

    Here are the steps that need to be done by the Flow:

     

    1- Creating a notice (email and Teams) to say that a form has been submitted

    2- Form data is entered into a SharePoint list

    3- An approval must be made by me

    4- An email to give the answer must be sent to the applicant who submitted the form and to an email box of another team for them to process the rest of the request.

    5- The SharePoint list must be updated with the status accepted or denied, the date and the name of the approver.

  • SanmeshG Profile Picture
    1,956 Moderator on at

    Hi @JacB ,

     

    Looking at your second screenshot , I think you need to have correct reference to the output array that comes from the Approvals action.

     

    Have checked what output/(s) you are getting in the approvals action?

     

    Are you sure that you are passing the correct input array to apply to each?

     

  • JacB Profile Picture
    4 on at

    there is something wrong with the input, but I don't know what it should be?

     

    JacB_0-1694526653499.png

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @JacB 

     

    Could you share how you passed the parameters in send email action ?

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Michael E. Gernaey Profile Picture
    53,970 Super User 2026 Season 2 on at

    The issue is you have a \n on the email which has been converted as part of the string, but thats invalid to have the \ in the string and not escaped

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Contractor Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard