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

Genearte a Quote-Pdf on a trigger

Hi friends,
how can generate a pdf in my quote-trigger?
Hope the following post answers your question.
With the code I can create a PDF auotmatisch.
Is it also possible to define a template?

public static void createQuotePDF()
        List<QuoteDocument> sr = new List<QuoteDocument>();
            sr.add (new QuoteDocument(
            QuoteId = idQuo,
            document = Blob.toPDF('Template?????))); 
        insert sr;