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
RevanthRevanth 

updating the grandchild record

can we update the grandchild record  in salesforce using apex?

Prady01Prady01

Yep!! you can, unless you have the permission from the profile, Or else if you want to ignore the prior, then you can run your apex class in the system mode, this is done by declaring 

 

public without sharing class noSharing {
// your code!
}

Hope this helps!

 

Thanks

Prady

RevanthRevanth

Thank you sir

Ankit AroraAnkit Arora

You can use relationship name to get the grand parent child records and easily update them.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page