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
Naveen Ashok 4Naveen Ashok 4 

How can i slove this requirment

hi Guys,
how can slove this one .

i have 2 objects a and b .B  object contains role field it is picklist .A object contains x and y fields both are no fields.
Now i creating the record in B object when i take the role as Primary and click on save button in the A object x = 1.when i change the role as secondary for same record in B object in A object y = 1.
Please can any one help me.
please
DebasisDebasis
Hi Naveen,

Do you have any relationship among A nd B object?
Do your B record have each correspending A record or one A record will be mapped with all A record?


Please let me know this points.
Sneha1991Sneha1991
Hi Naveen,

Using Process builder you can achieve this. Create a process builder on B object and select the second option "when a record is created or edited".
1. If A and B object are related (look up) then use action - Update records  and whenever B object records role value is changed, update respective value for x & y fields in A object record.

2. If A and B object are not related (no relationship) then add action - Create a Record  and whenever B object records role value is changed create a record in A object with respective value for x & y fields.

Let me know if you have any queries regarding the same.