You need to sign in to do that
Don't have an account?
Query to get a PDF's url in my trigger
Hi,
May someone help with writing a query in my trigger to get a pdf doc'd url. I need the piece of code.
I need to get this link from the Notes and Attachment object.
Below is the piece of triger i ahve written
trigger DoconQuote on dsfs__DocuSign_Status__c (after insert, after update) {
try
{
system.debug('In trigger');
dsfs__DocuSign_Status__c dssNew = Trigger.new[0];
dsfs__DocuSign_Status__c dssOld = null;
if (!System.Trigger.isInsert) dssOld = Trigger.old[0];
if (System.Trigger.isInsert || dssOld.dsfs__Envelope_Status__c != dssNew.dsfs__Envelope_Status__c)
{
if (dssNew.dsfs__Envelope_Status__c == 'Completed')
{
// I want the logic for fetching Pdf's url to go here }
}
}
}
catch (Exception ex)
{}
}