function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MrRigneyMrRigney 

Master Detail Relationship Updates Java

I am using Java to call the API's in SalesForce.  My question is related to using Master Detail relationships, i.e my Account object is parent to some Custom Object I defined.  

 

Let's say I want to delete 2 of the children objects and update another one of them, is there a way to do this all in one API call by updating the Account and children will automatically get updated?  When I look at the setters and getters on the Account Java Object for the child relationship, it is using QueryResult type for the child collection attribute, I guess I was expecting them to be a Collection of the child object type, not QueryResult.  

 

Is it possible to add, delete and update child objects and just make one API call to update the Account objects and all of the child objects would get updated as well, or do I just need to do this by updating/deleting the individual objects?

 

An example would be helpful. Thanks

 

 

dkadordkador

This is not currently possible.