I am very new to triggers but would like to set up a simple trigger. Any help is greatly appreciated! Pseudo code below.
on insert or update
if (Docusign Envelope Status is equal to 'Signed' AND Opportunity Status does not equal ‘Agreement Signed Pending Rollout’){
update Opportunity Stage to ‘Agreement Signed Pending Rollout’
}
Will this work?
How should I go about compiling the trigger?
variables API Name
Docusign Envelope Status dsfs__Envelope_Status__c
DocuSign Oppty dsfs__Opportunity__c
Best Answer
This simple trigger will do the trick.
Explanation:
==
in if condition but=
in next line?==
is comparison operator which is used to compare two values.=
is assignment operator which is used to assign value in right hand side to left hand variable.Hope it helps.