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 child/related e...
Power Apps
Unanswered

Update child/related entities in one REST API operation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

 

Using the organization service, it is possible to update child entities as an aggregate request, per -

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/entity-operations-update-delete#update-related-entities-in-one-operation

 

Now, I am reading that the organization service endpoint may not be supported directly in future and the Web API is the preferred approach.
How can the above capability be achieved using the REST APIs?
I have have faced limitations with the REST API noted here-

https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Update-Dataverse-child-entity-with-a-collection/m-p/1952841

I have the same question (0)
  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @Anonymous,

    Yes it's possible with the OrganizationService. And note that is not set to be deprecated anytime soon. It is actually the widely used for extending Dataverse. To acheive this there are two methods:

    1. Perform a ExecuteTransactionRequest . Set the first item (create request) of this request to the parent record (ie integrat_courseoutlines) and set a Guid, do not let the system generate one. Then the following items are the related records (more create requests) with the ID (Guid) of the parent set.
    2. Use the RelatedEntities property of the Entity object. Here's a sample:

     

     

    var accountToUpdate = new Account
    {
     Name = "Example Account - Updated",
     AccountId = _accountId
    };
    
    var relatedLettersToUpdate = new EntityCollection
    {
     EntityName = Letter.EntityLogicalName,
     Entities =
     {
     new Letter{Subject = "Letter 1 - Updated", ActivityId = _letterIds[0]},
     new Letter{Subject = "Letter 2 - Updated", ActivityId = _letterIds[1]},
     new Letter{Subject = "Letter 3 - Updated", ActivityId = _letterIds[2]}
     }
    };
    
    accountToUpdate.RelatedEntities.Add(letterRelationship, relatedLettersToUpdate);
    service.Update(accountToUpdate);

     

     


    BTW with your post in the other thread concernig Web API, did you give Batch requests a try? That will work 🙂
    Hope this helps!

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard