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 / The result must be a v...
Power Automate
Unanswered

The result must be a valid array.ult must be a valid array.

(0) ShareShare
ReportReport
Posted on by

Am facing this issue when i test my power automate workflow 

error: 

The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@variables('Approvers')' is of type 'String'. The result must be a valid array.

this is my flow;

julius2024_0-1703072262937.png

 

 

 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    You should initialize Approvers variable to array in the following way:

    [

    "User1@contoso.com","User2@contoso.com"

    ]

    Hope it helps!

    Ferran

  • Community Power Platform Member Profile Picture
    on at

    I created flow of dynamic approvers and the flow should run in a way that when a first approver rejects it, it shouldnt be be passed to the next approver.

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard