Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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! 

  • v-yamao-msft Profile Picture
    on at
    Re: Extract value from JSON Array without using Apply To Each

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1