Reply
Contributor
Revanth
Posts: 5
0

updating the grandchild record

can we update the grandchild record  in salesforce using apex?

Regular Contributor
Prady01
Posts: 52
0

Re: updating the grandchild record

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

Salesforce Certified Developer.
Contributor
Revanth
Posts: 5
0

Re: updating the grandchild record

Thank you sir

Moderator
Ankit_Arora
Posts: 1,767
0

Re: updating the grandchild record

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

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Force.com MVP
Certified Developer | Twitter


Don't forget to give KUDOS if post helped you.


Latest Blog Posts : Streaming API- Easy Code AND Uploading Multiple Attachments into Salesforce - Simple Code


If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.