You need to sign in to do that
Don't have an account?
CKR
How to write a trigger while a cusotm field (Picklist) staus__C on account is changing from Open to Processing,its related contacts have to be fetched and the checkbox "Yes" on related contacts have to be checked i.e "True"
Hi All,
How to write a trigger while a cusotm field (Picklist) status__C on account is changing from Open to Processing,its related contacts have to be fetched and the checkbox field "Yes" on related contacts have to be ''checked'' i.e as "True". i tried using trigger.new/Old , which did not worked at all and my code looks terrible, so i am not posting here. actually my reason behind this question is to know the perfect use case that makes me sense of the importance of trigger.Newmap, trigger.oldmap and trigger,Isexecuting.
Help will be appreciated.
Thanks
CKR
How to write a trigger while a cusotm field (Picklist) status__C on account is changing from Open to Processing,its related contacts have to be fetched and the checkbox field "Yes" on related contacts have to be ''checked'' i.e as "True". i tried using trigger.new/Old , which did not worked at all and my code looks terrible, so i am not posting here. actually my reason behind this question is to know the perfect use case that makes me sense of the importance of trigger.Newmap, trigger.oldmap and trigger,Isexecuting.
Help will be appreciated.
Thanks
CKR
You can follow this code below.
Trigger
Apex class
If this surves your purpose, please mark this answer.