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 / Approvals Outcome retu...
Power Automate
Answered

Approvals Outcome returns a comma delimited string how do I convert this to an array for use in a Apply to Each card? Split() syntax problem

(0) ShareShare
ReportReport
Posted on by 4

I'm trying to run a multi-stage approvals process in Power Automate. The first Approval involves multiple approvers and the Approval action returns a comma-delimited string in the body/Outcome. I can't pass that to a condition directly (see below)

vanalljc_0-1705688924639.png

So I'm wanting to iterate through the list and determine if there are any "reject" responses

vanalljc_1-1705689114746.png

I've been trying to convert the comma-delimited string to an array using a Split() to initiate an array variable. I can't seem to figure out the syntax.

 

copying the dynamic content for the body/outcome i get 

 

@{outputs('Start_and_wait_for_an_approval_-_JHSC')?['body/outcome']}

 

how to I put that into the Split()?

 

Split(outputs('Start_and_wait_for_an_approval_-_JHSC')?['body/outcome'],", ") returns invalid syntax

 

Or is there a more elegant way to achieve the same result?

 

Thanks

 

Categories:
I have the same question (0)
  • Grivollier Profile Picture
    39 on at

    If you set the approval type to "Everyone must approve" then you don't need to go over each one of them, the Outcome parameter of it will give "Approve" if everyone appproves, you can just check that value. 

     

    Regards, 

  • vanalljc Profile Picture
    4 on at

    Thanks Grivollier,

    I already have the approval set to "everyone must approve"

    vanalljc_0-1705924739149.png

    but I'm still getting a comma-delimited string as the output

    vanalljc_1-1705925103602.png

    The approval is in an "Apply to each" because it's the only way I've found to get the email recipients into the approval from our Approvers Matrix.

    vanalljc_2-1705925309191.png

     

  • Verified answer
    Grivollier Profile Picture
    39 on at

    You could try and find the string "Reject" in that text and if it is found then it was rejected. You should be able to achieve this using the contains() fucntion. The hard way would be to parse the text and check for every item. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard