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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update complex record ...
Power Apps
Unanswered

Update complex record from ParseJSON

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

As part of developing a back-office for an existing application, I need to manipulate CosmosDB documents in order to make modifications on them individualy.

 

Here is my code:

 

Set(Update; {Value: ParseJSON(JSON({Designation: {fr: DesignationInput.Text}}))});;
Set(ProductToSave; Patch(Product; Update));;
UpdateCosmosDB.Run(ProductToSave; "products");;

 

I am facing several technical difficulties with this.

Indeed, in order to use my data in PowerApps, I use ParseJSON which returns an object containing a Value attribute of type UntypedObject, on which I cannot modify the child attributes.

If I attempt a Patch, PowerApps directly replaces the entire content of Value with the Value of the second record.

I cannot set all the fields to my "FieldsToUpdate" object, as the resource I am trying to modify has more than sixty fields, arrays, maps ...

 

What solution could I use to resolve my saving issue?

 

One approach I tried, which was not successful, was to send "Product" and "Update" to Power Automate, but I am unable to perform a "merge" of the two JSON objects after analysis.

 

Thank you in advance for your responses.

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard