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"
},
Solved! Go to Solution.
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:
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.
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.
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:
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.
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.
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.
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:
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.
That is perfect @v-litu-msft . I really appreciate the help and getting me moving in the right direction.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
77 | |
19 | |
17 | |
14 | |
11 |
User | Count |
---|---|
133 | |
34 | |
31 | |
31 | |
24 |