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

Community site session details

Session Id : 3JI6tFzAl4StaK/0p18gdQ
Power Automate - Building Flows
Unanswered

Apply to each - issue

Like (0) ShareShare
ReportReport
Posted on 27 Aug 2023 08:01:53 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.

I have the same question (0)
  • ManishSolanki Profile Picture
    15,089 Super User 2025 Season 2 on 28 Aug 2023 at 10:05:12
    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 28 Aug 2023 at 04:12:19
    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,089 Super User 2025 Season 2 on 27 Aug 2023 at 12:26:51
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 954 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 650 Moderator

#3
trice602 Profile Picture

trice602 327 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete