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
Jagadesh BandaruJagadesh Bandaru 

Parent record lock due to concurrent API calls for the child record in a Master Child relation

Hi All,

I have an issue with updating child records. There is a custom API call from an external systems to update child records (in a MD relation). The issue is that there are more than 5 API calls to update child records belonging to the same Parent. And since the first (or any other) record is still in process, the parent is getting locked. Any ideas on how to solve this?

We tried "For Update" and "System.EnqueJob" but the same issue still exists.

Regards,
Jagadesh Kumar.