function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Has anyone created any sort of code that could recognize whether a quote has a PDF created in the related list?
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}ThanksUtsav[Do mark this as solution and give Kudos if it helps you]
This would help you know if there is a Quote Pdf present for a Quote.
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]