Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Apply to each - issue

(0) ShareShare
ReportReport
Posted on by 3

This is what I got once A response was submitted- What does this mean- what should I do 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@{triggerOutputs()?['body/resourceData/responseId']}@{triggerOutputs()?['body/resourceData']}@{triggerOutputs()?['body']}' is of type 'String'. The result must be a valid array.

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Apply to each - issue

    Hi @Mona-Salameh 

     

    As mentioned in my previous reply, pls add "Get response details" just after "When a form is submitted" action to get the responses of the submitted form. I think you have taken this as parallel action. It should be executed sequentially just below the main trigger action.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Mona-Salameh Profile Picture
    3 on at
    Re: Apply to each - issue

    Screenshot (58).png I have this - and it says that the apply to each should have an array and not a string.

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Apply to each - issue

    Hi @Mona-Salameh 

     

    To get the field values of the submitted form, you need to add "Get response details" action with 'Response Id' pass to it from trigger action:

    ManishSolanki_0-1693138927500.png

    You can now add further actions as you will get the field values from the output of "Get Response details" action in the Dynamic content window:

    ManishSolanki_1-1693139170906.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1