web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract value from JSO...
Power Automate
Unanswered

Extract value from JSON Array without using Apply To Each

(0) ShareShare
ReportReport
Posted on by

Hello everyone, 

 

I have a JSON that has the following format:

 

{
 "value": [
 {
 "title": "Title 1",
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3",
 },
 {
 "title": "Title 2",
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3-1",
 },
 {
 "title": "Title 3",
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3-2",
 }
 ]
}

 

I used Data Operations - Select to extract the ID fields  and now I have the following format:

 

[
 {
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3"
 },
 {
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3-1"
 },
 {
 "ID": "9ee4ee0d-388a-4c87-8ff0-b2584eac42e3-2"
 }
]

 

I want to extract the values of all the IDs and return them as a string.

I have already managed to do so, using 'Variables-Initialize Variable', 'Aply To Each' and 'Variables-Append to string Variable'.  I am looking for a solution where I don't have to use the 'Apply To Each' ,as this operation takes a fews seconds to complete and the latency increases with increasing number of items (in the case above only 3). Does anyone know how to return all the IDs as a string without the use of Apply To Each?

 

Any kind of help or input is appreciated. Thank you in advance! 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @liko,

     

    Per my certain research and test, I am afraid that it might be not possible to extract all the IDs and set them as a string without using Apply to each.

     

    There is another customer request the same feature on join function, please see it at here:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Data-Operations-Join-don-t-need-Apply-to-each-flow/idi-p/53382

     

    Please vote and comment the idea at here. I will keep an eye on this issue to see if there are other available methods.

     

    Best regards,

    Mabel Mao

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard