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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

How to retrieve and update JSON value In LogicApp using 'For Each'

(0) ShareShare
ReportReport
Posted on by 75

Background:


I wish to loop through, retrieve and update items within my document

I wish to locate and loop through values within an array, locate nested values and then update them using LogicApps. I know I am on the right path, I just need a little assistance.


1.

Here is the document. I wish to loop over A (it has many records in it) and retrieve all of the
categories.

"A":
            [

                {
                     "category": "1"
                  }

            ]

2.

Once I retrieve the categories, I wish to loop over each one of the categories I find and then update their id and status

 

"category":"1"
 "box":
               [
                    {
                         "id": "update"
                           "status": "update"

                      }

               ]


My approach and what I have done:

 

 

I believe I have to do a 'For Each' loop over the A's.
I am just not sure how to write in the logicApp that I want to retrieve all the "category" fields and then the fields within the box field.

Then once I obtain all the "category" fields, I must update the id and status within this array with
a string.


I want to change


"id": "update" to "id" : "number"


and change


"status": "update" to "status": "linked"


I believe I must: initialize, parse, and do a For Loop

 

   pastedimage1597186022983v1.png

pastedimage1597186052401v2.png

 

 

 

 


I believe I must: initialize, parse, and do a 'For Each' Loop, but how do I tell the logicapp I wish to grab the "category" part of the "A" since its nested, and then once I have the "category" part to then update the nested fields of "id" and "status" within that?

Any help is great

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 62 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans