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
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?