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
jmburnsjmburns 

Help with trigger test code

Can some one please help me with test code for this trigger? I am in a crunch and am about to go live with a system and my developer is not available! I would appreciate any help.

 

trigger Set_Doc_Code on dsfs__DocuSign_Envelope_Recipient__c (after update) {
for (dsfs__DocuSign_Envelope_Recipient__c a : Trigger.new) {
a.dsfs__DSER_ContactID__c = a.Receiver__c; }}

 

JB

coolSamcoolSam

just type the following in the test class...

 

dsfs__DocuSign_Envelope_Recipient__c a = new dsfs__DocuSign_Envelope_Recipient__c();

insert a;

a.Receiver__c = [put in what ever be the appropriate value for this reciever field is];

update a;