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
himanshu huske 7himanshu huske 7 

Update Account Discription with Checkbox

In Account object there is a checkbox IsPrimary__c, and in Contact there is PickList Status__c(values: 'IsPrimary', 'IsSecondery').
for an account record if two contact record are created with one as Status__c = IsPrimary and another Status__c = IsSecondery.
1. If in Account IsPrimary__c checkbox is checked then.
Account Discription = Discription in contact having Status__c = IsPrimary. 
2. If in Account IsPrimary__c checkbox is Unchecked then.
Account Discription = Discription in contact having Status__c = IsSecondery.
Please Provide Trigger Using Map
Raghu NaniRaghu Nani
Hi Himansu,

Can you please clarify the below points.
  1. When you want to update Account record.  2 senarios will come from your question.
  • Account Description can be updated whenever Account check box is modified in account level (in this senario we have to write trigger on account ) OR Account description can be updated whenever contact is created/Updated.?( in this senario we have to write trigger on contact)
himanshu huske 7himanshu huske 7
Trigger on account, i want to update Account discription