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
sesha Raosesha Rao 

How to edit the Parent Record Data from Child record

Hi I want to know that is there any possibility that we can edit the parent record data from child record and vice verse?
Please help
Ricardo DiazRicardo Diaz
You need to query the Parent Object to retrieve the fields you need to work with. i.e. [SELECT Name, Id FROM Account WHERE Id...]
GauravGargGauravGarg

Hi Sesha,

In trigger of Child record, query parent record using field "parentId" if standard object, else the API name of your master-detail / lookup field.

[Select id, parentId from child_object where parentId = ]

Hope this will solve your problem.

Thanks,

Gaurav

sesha Raosesha Rao
Thanks for the replies but I want to do that from the coustomization not programatically.