Skip to main content
Prepare the documents required to publish a quote - Email, main document as pdf, quoted products as pdf, attachments.

Constructors

NSQuotePublishDocuments()

Initializes a new instance of the NSQuotePublishDocuments class.

Methods

GetErrorMessage()

Returns: CRMScript.Global.String - If something went wrong, show this message and do not continue. Example:

GetMailBody()

Returns: CRMScript.Global.String - 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. Example:

GetMailSubject()

Returns: CRMScript.Global.String - The string that is the mail subject; done by merging the text resource SR_QUOTE_PUBLISH_MAILHEADING with the current template variable values. Example:

GetQuoteAttachmentIds()

Returns: CRMScript.Global.Integer[] - Array of IDs of any attachments (standard + custom for this version). Example:

GetQuoteDocumentId()

Returns: CRMScript.Global.Integer - Quote document, as PDF; may be zero if there is no document specified for the version. Example:

GetQuotedProductsId()

Returns: CRMScript.Global.Integer - Quoted products (quote lines or confirmation lines) document, as PDf. Example:

GetToEmail()

Returns: CRMScript.Global.String - The email address of the recipient, taken from the sale’s person. Example:

GetToFullName()

Returns: CRMScript.Global.String - The full name of the recipient, taken from the sale’s person. Example:

SetErrorMessage(String)

Returns: CRMScript.Global.Void Example:

SetMailBody(String)

Returns: CRMScript.Global.Void Example:

SetMailSubject(String)

Returns: CRMScript.Global.Void Example:

SetQuoteAttachmentIds(Integer[])

Returns: CRMScript.Global.Void Example:

SetQuoteDocumentId(Integer)

Returns: CRMScript.Global.Void Example:

SetQuotedProductsId(Integer)

Returns: CRMScript.Global.Void Example:

SetToEmail(String)

Returns: CRMScript.Global.Void Example:

SetToFullName(String)

Returns: CRMScript.Global.Void Example: