Generate Quote Documents
Generate all the documents required to send the Quote as an email to the prospect - or an Order Confirmation; it just depends on the template id’s for the lines doc and mail body.
Quote version status is not changed by this method. NsApiSlow threshold: 5000 ms.
Headers
Convert string references and multi-language values into a specified language (iso2) code.
Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
Specify the timezone code that you would like date/time responses converted to.
The application token that identifies the partner app. Used when calling Online WebAPI from a server.
Query Parameters
Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
Body
QuoteVersionId, EmailBodyTemplateId, AttachMainDocument, QuotedProductsTemplateId, IncludeAttachments, RawMailSubject
GenerateQuoteDocuments: Generate all the documents required to send the Quote as an email to the prospect - or an Order Confirmation; it just depends on the template id's for the lines doc and mail body. Quote version status is not changed by this method.
Response
OK
Prepare the documents required to publish a quote - Email, main document as pdf, quoted products as pdf, attachments Carrier object for QuotePublishDocuments. Services for the QuotePublishDocuments Carrier is available from the Quote Agent.
Quote document, as PDF; may be zero if there is no document specified for the version
Quoted products (quote lines or confirmation lines) document, as PDF
Array of id's of any attachments (standard + custom for this version)
The string that is the content of the mail body; this is the result of merging the mail body template with the current template variable values
The string that is the mail subject; done by merging the text resource SR_QUOTE_PUBLISH_MAILHEADING with the current template variable values
The email address of the recipient, taken from the sale's person
The full name of the recipient, taken from the sale's person
If something went wrong, show this message and do not continue
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Field property dictionary mapping field names to field access rights.
Related topics
Quote documentNSQuoteAgentGenerate a documentCreate a quote documentQuote templates and merge fieldsIndex