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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Action 'Apply_to_each'...
Power Automate
Answered

Action 'Apply_to_each' failed

(0) ShareShare
ReportReport
Posted on by

I am trying to get  the Partner email from each row for a mail merge.

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')?['Partner
Email']' is of type 'String'. The result must be a valid array.

 

I made it a table. Not sure what else I can do?

Its pulling data from a simple spreadsheet with 4 rows.

The issue seems to be with the email address.

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    The Apply to each action iterates through an array and performs actions on each array item. 

    Schema reference for trigger and action types - Azure Logic Apps | Microsoft Docs

     

    The reason for the issue happened is that the input is an invalid array.

    You could use JSON() function convert a string to object or array, for example:

    Screenshot 2020-12-10 151549.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 265 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

#3
trice602 Profile Picture

trice602 202 Super User 2025 Season 2

Last 30 days Overall leaderboard