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

Extract JSON string data from variable populated from PowerApps Collection

(0) ShareShare
ReportReport
Posted on by 25

I have been doing a lot of research and continue to struggle with how to work with data I received from PowerApps.  I had to use JSON to pass a collection with an embedded table to MS Flow.  The data looks like the below screen shot when I receive it in the variable in Flow.  I really just need to get the email address from that string array.  I have tried many iterations of substring, split and other expressions with no luck.  Any idea how I can extract only the email address to be used later in the flow.  There are about 65 items in this list.  The real problem I am having is the "email": being passed with the data due to the embedded table of data in PowerApps.

 

[
{
"email": "email address here"
},
{
"email": "email address here"
},

I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    Hi @Chad_Mitchell,

     

    The instance you provided is an array, so you could input it into an Apply to each action to loop through all items, then use the expression:

    item()?['email']

    to get each email address:

    Annotation 2020-06-18 134056.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Chad_Mitchell Profile Picture
    25 on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    @v-litu-msft 

    I tried what you suggested.  My problem is the variable I am getting from PowerApps seems to be a string even though it is in the array.  Here is what I got when trying your suggestion.  I tried it using the Variable first and then a compose into the apply to each.  Wonder if I need to convert it to an array first. 

     

    Chad_Mitchell_0-1592575065417.png

     

  • Verified answer
    Chad_Mitchell Profile Picture
    25 on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    @v-litu-msft 

    that did it.  I used parse JSON after the variable and then the apply to each you suggested.  I now have all the email addresses.  Just need to get them back in a string so I can send the email.  Thank you.

  • v-litu-msft Profile Picture
    on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    Hi @Chad_Mitchell,

     

    You could initialize a string variable, then loop through all emails and append them + ";" into the string variable, then you could get a string that only contains emails:

    Annotation 2020-06-23 172841.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Chad_Mitchell Profile Picture
    25 on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    That is perfect @v-litu-msft .  I really appreciate the help and getting me moving in the right direction. 

  • Community Power Platform Member Profile Picture
    on at
    Re: Extract JSON string data from variable populated from PowerApps Collection

    @v-litu-msft  it is giving me an empty array

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

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard