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 Platform Community / Forums / Power Automate / Approvals Outcome retu...
Power Automate
Unanswered

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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard