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
Gaurav RajGaurav Raj 

Trigger on DocuSign_Status

Need help writing this trigger

 

whenever the status field on Docusign_Status shows completed, i need to fetch the pdf's link from its Notesand Attachement section.

 

I have written something like this

 

if docusign_status_c="completed"{

Select Id,(SELECT Id FROM Attachments)
FROM dsfs__DocuSign_Status__c
ORDER BY LastModifiedDate DESC LIMIT 1

 

can someone help me with further logic