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 / Error in Apply to each...
Power Automate
Unanswered

Error in Apply to each "Array not convertible to String

(0) ShareShare
ReportReport
Posted on by 2

Hello

 

I am building a power automate email flow but receiving this error 

 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'emailMessage' validation failed in workflow operation 'Send_an_email_(V2)': The parameter with value '"@items('Apply_to_each')?['Assignedto']"' in path 'emailMessage/To' with type/format 'Array' is not convertible to type/format 'String/email'.'.

 

Serendipity102_0-1627345138707.pngSerendipity102_1-1627345235806.png

 

 

Categories:
  • eric-cheng Profile Picture
    5,171 on at

    Hi @Serendipity102 ,

     

    Can you output the Assigned To value in a Compose action?

     

    You may need to loop through the array and convert it to a semicolon separated string (email@email.com; email2@email.com etc)  using the Append To Variable action.  

     

    Please refer to this post here for more details.

     

    Thanks

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

  • Serendipity102 Profile Picture
    2 on at

    Thansk for the quick response!

    Does it mean i need to put the emails manually? what if there are new Assigned to names / emails in the future? 

  • eric-cheng Profile Picture
    5,171 on at

    Hi @Serendipity102 ,

     

    No, you shouldn't need to do anything manually.  All it does is to take what you were passing earlier and format it in the correct format that the To field is expected

     

    Thanks 

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

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 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard