You need to sign in to do that
Don't have an account?
himanshu huske 7
Trigger_Task_4
Account object has Acc_Satus__c Field and Contact Object has Con_Status__c Field.
both Acc_Satus__c, Con_Status__c are picklist field with values: Open, Closed, InProgress.
Account Record Has Three Child Contact Records
1. Whenever Account record field is updated with Acc_Satus__c Piclist field as 'Closed', all Contact Con_Status__c field should be 'Closed'.
2. if Con_Status__c field in all three Contact record is selected as 'Closed' Account picklist Acc_Satus__c Field Should be 'Closed'.
give me a code with Helper class
both Acc_Satus__c, Con_Status__c are picklist field with values: Open, Closed, InProgress.
Account Record Has Three Child Contact Records
1. Whenever Account record field is updated with Acc_Satus__c Piclist field as 'Closed', all Contact Con_Status__c field should be 'Closed'.
2. if Con_Status__c field in all three Contact record is selected as 'Closed' Account picklist Acc_Satus__c Field Should be 'Closed'.
give me a code with Helper class
This is for your first scenario
modify little bit if required,
You can use the below code:
<<<<----Contact trigger --->>>>>
<<<<---Contact Helper class--->>>>
<<<<<<----Account Trigger--->>>>>
<<<<----Account Helper class----->>>>>
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi