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 / How to change string i...
Power Automate
Unanswered

How to change string into array

(0) ShareShare
ReportReport
Posted on by 8

The execution of template action 'Apply_to_each_7' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['Body/ProductLine']?[0]?['Value']' is of type 'String'. The result must be a valid array.

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Frank-Young 

     

    It looks like 'Value' property is a string not an array, could you pls try using @triggerOutputs()?['Body/ProductLine'] as  ProductLine is an array object. If you could not figure it out, then pls share the flows screenshot along with flow history.

     

    If this helps & resolves 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

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
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard