Hi ,
I have results like below
{
"d": {
"results": [
{
"__metadata": {
},
"Title": "xxxxxx",
"Email": "xxxx@xxx.com"
},
"__metadata": {
},
"Title": "xxxxxx",
"Email": "xxxx@xxx.com"
}
]
}
}
I have above JSON am able to convert to JSON object but the problem is extract Email information from JSON and then concatenate with column need to use those Email Address to send emails at one go
Thanks in advance
Solved! Go to Solution.
Hi @Lk,
Could you please show a bit more about the JSON object?
Do you want to extract email addresses from the JSON object?
I think there is something wrong with the JSON object that you provided, please check if you have provided a proper JSON object sample.
I assume that your JSON object data as below:
{ "d": { "results": [ { "__metadata": { "Title": "xxxxxx", "Email": "Test1@xxxxxx.onmicrosoft.com" } }, { "__metadata": { "Title": "xxxxxx", "Email": "Test3@xxxxxx.onmicrosoft.com" } } ] } }
If you want to extract email address from above json object, please take a try with the following workaround:
{ "d": { "results": [ { "__metadata": { "Title": "xxxxxx", "Email": "Test1@xxxxxx.onmicrosoft.com" } }, { "__metadata": { "Title": "xxxxxx", "Email": "Test3@xxxxxx.onmicrosoft.com" } } ] } }
outputs('Compose')?['d']?['results']
concat(item()?['__metadata']?['Email'],';',variables('EmailStrings'))
Add a "Set variable" action, Name choose EmailStrings, Value set to output of the "Compose 2" action.
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Hi @Lk,
Could you please show a bit more about the JSON object?
Do you want to extract email addresses from the JSON object?
I think there is something wrong with the JSON object that you provided, please check if you have provided a proper JSON object sample.
I assume that your JSON object data as below:
{ "d": { "results": [ { "__metadata": { "Title": "xxxxxx", "Email": "Test1@xxxxxx.onmicrosoft.com" } }, { "__metadata": { "Title": "xxxxxx", "Email": "Test3@xxxxxx.onmicrosoft.com" } } ] } }
If you want to extract email address from above json object, please take a try with the following workaround:
{ "d": { "results": [ { "__metadata": { "Title": "xxxxxx", "Email": "Test1@xxxxxx.onmicrosoft.com" } }, { "__metadata": { "Title": "xxxxxx", "Email": "Test3@xxxxxx.onmicrosoft.com" } } ] } }
outputs('Compose')?['d']?['results']
concat(item()?['__metadata']?['Email'],';',variables('EmailStrings'))
Add a "Set variable" action, Name choose EmailStrings, Value set to output of the "Compose 2" action.
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Hi Kris,
Thank you so much for your explanation.But my data was outside _metadata.But I found out another solution by using "Append string variable" action.So I use apply to each and compose,Append string actions.In that way I acheived my goal
But big thanks to you for your idea
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
12 | |
9 | |
7 | |
7 | |
7 |
User | Count |
---|---|
19 | |
18 | |
17 | |
10 | |
7 |