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

Help to write the code for, to update the values in one custom object to another custom object

Hi All,

I have a requirement in one of custom application, requirement is like,

Applications having two custom objects like A and B, both objects have some same sections.

In custom object ‘A’ having one field of data type picklist like name is ownership, values of picklist is like own, other, joint under one section.

When the ownership = ‘joint’, what ever the values are filled in the fields of ‘A’ object under the particular section, after the save is happen in ‘A’ object,

Same values of that section are update in ‘B’ custom object of the same section.

Please help me to write the code of this scenario. or any suggestions for this.

Thanks in Advance,

Thanks and Regards,

Srinivas Chittela

You need to write a Trigger on object A for achieving this functionality.


Refer to the APEX documentation for the same here