+ Start a Discussion
LauraJMLauraJM 

I want to know if a quote has a PDF created

Has anyone created any sort of code that could recognize whether a quote has a PDF created in the related list?

imutsavimutsav

This would help you know if there is a Quote Pdf present for a Quote.


LauraJM wrote:

Has anyone created any sort of code that could recognize whether a quote has a PDF created in the related list?


 

 

List<QuoteDocument> quoteDocumentLists = [Select Id, QuoteId from QuoteDocument where QuoteId =:qId];

if(quoteDocumentLists==NULL || quoteDocumentLists.size()<=0) {
//qutoe pdf not present
}

Thanks
Utsav

[Do mark this as solution and give Kudos if it helps you]

Sarika PatelSarika Patel
If the pdf is not generated how to generate the pdf?