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
ledap13ledap13 

Genearte a Quote-Pdf on a trigger

Hi friends,
how can generate a pdf in my quote-trigger?
Ramu_SFDCRamu_SFDC
Hope the following post answers your question.

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000907dIAA
ledap13ledap13
super!
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;
    }