Skip to main content
Quote carrier with the active quote version and favorite alternative.

Constructors

NSQuote()

Initializes a new instance of the NSQuote class.

Methods

GetAcceptedQuoteAlternativeId()

Returns: CRMScript.Global.Integer - The primary key of the Quote Alternative which was finally accepted by the customer.
Set when the user is marking a quote as accepted.
Example:

GetActiveQuoteVersion()

Returns: CRMScript.NetServer.NSQuoteVersion - The active quote version for the quote. Example:

GetActiveQuoteVersionId()

Returns: CRMScript.Global.Integer - The primary key of the Quote Version that is currently active.
The active version will always be the latest version.
Example:

GetDocumentId()

Returns: CRMScript.Global.Integer - The ID of the main Quote Document. Example:

GetERPOrderKey()

Returns: CRMScript.Global.String - The key in the ERP system that identifies this sale’s Order, as transferred and possibly later edited in the ERP system.
Only filled out if there exists a corresponding order representation of the quote in the ERP system.
Example:

GetERPQuoteKey()

Returns: CRMScript.Global.String - Foreign key of quote (if available). The key in the ERP system that identifies this sale’s Quote (as opposed to the later Order information). Example:

GetFavoriteQuoteAlternative()

Returns: CRMScript.NetServer.NSQuoteAlternative - The favorite quote alternative for the quote and active quote version. Example:

GetOrderComment()

Returns: CRMScript.Global.String - A comment that is intended for the Invoice, Order, Packing list and similar stages AFTER the quote has become an order and goes to ERP for processing. Example:

GetPoNumber()

Returns: CRMScript.Global.String - Customer’s Purchase order number. Example:

GetPreferredEmailCulture()

Returns: CRMScript.Global.String - When emails are sent (offer or confirmation), a language can be chosen in the GUI; this field saves the most recent choice and can be used to default the next such choice. Default-default is user’s current language. Example:

GetQuoteConnectionId()

Returns: CRMScript.Global.Integer - The connection in the CRM system to where this quote came from. Identifies the ERP connection used for this quote. Each quote is bound to one and only one connection. Example:

GetQuoteId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetSaleId()

Returns: CRMScript.Global.Integer - The foreign key to the corresponding sale. Example:

GetUseValuesFromQuote()

Returns: CRMScript.Global.Integer - If true, then the Earning, Earning_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative). Example:

SetAcceptedQuoteAlternativeId(Integer)

Returns: CRMScript.Global.Void
Set when the user is marking a quote as accepted.
Example:

SetActiveQuoteVersion(NSQuoteVersion)

Returns: CRMScript.Global.Void Example:

SetActiveQuoteVersionId(Integer)

Returns: CRMScript.Global.Void
The active version will always be the latest version.
Example:

SetDocumentId(Integer)

Returns: CRMScript.Global.Void Example:

SetERPOrderKey(String)

Returns: CRMScript.Global.Void Example:

SetERPQuoteKey(String)

Returns: CRMScript.Global.Void Example:

SetFavoriteQuoteAlternative(NSQuoteAlternative)

Returns: CRMScript.Global.Void Example:

SetOrderComment(String)

Returns: CRMScript.Global.Void Example:

SetPoNumber(String)

Returns: CRMScript.Global.Void Example:

SetPreferredEmailCulture(String)

Returns: CRMScript.Global.Void Example:

SetQuoteConnectionId(Integer)

Returns: CRMScript.Global.Void Example:

SetQuoteId(Integer)

Returns: CRMScript.Global.Void Example:

SetSaleId(Integer)

Returns: CRMScript.Global.Void Example:

SetUseValuesFromQuote(Integer)

Returns: CRMScript.Global.Void Example: