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 / Extract JSON string da...
Power Automate
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"
},

Categories:
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    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

    @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

    @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
    Microsoft Employee on at

    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

    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
    Microsoft Employee on at

    @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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard