Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How can I update nested fields using a Logic App

(0) ShareShare
ReportReport
Posted on by 75

Background:
I'd like to perform an update on nested fields using the LogicApp

 

This is what I did:


1. Ran my query to fetch the documents I need

2. Create global variable that holds the array that I wish to 'update'

3. Run for each loop over the first query, parsed the JSON , create a for each loop for

all of the items in the Feedbacks array : 

 [   
{ "id" : "1234"}

 ]

4. Append the variable that I created with the current item in the loop

5. Finally update that original feedback array with the updated array that was created in the

   first variable dynamically.

"id":"1234"

"Features":

{

"id": "update me"

"state": "update me"

}

]

 

 pastedimage1597269069256v1.png

pastedimage1597269100761v2.png

pastedimage1597269125147v3.png

 

Error I have:

 

 pastedimage1597269154787v4.png

 

 

I suppose its placing the array



{

"id": "update me"
"state": "update me"

}

]

inside the

Feedbacks array []

When I am wanting  the items and array that the feedback id is pointing to to be updated within the feedback array, nested in the Features array.

 


For instance this is the feature container that holds the Feedbacks array (highlighted)

 pastedimage1597269177521v5.png

 

 

And within the Feedbacks array above, I am wanting to iterate within each of its ids and then update that Features array with what I provided in the variable

 

pastedimage1597269200886v6.png

 


(I believe what needs to be updated is being placed in that initialize variable?)

 

 

Any advice or suggestion is greatly appreciated. I am a bit stuck on this.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans