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

Community site session details

Session Id :
Power Automate - Building Flows
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

 

I have the same question (0)
  • Grivollier Profile Picture
    39 on at
    Re: 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

    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
    Re: 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

    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
    Re: 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

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard