Skip to main content
Information about a version of the.

Constructors

NSQuoteVersion()

Initializes a new instance of the NSQuoteVersion class.

Methods

GetApprovedBy()

Returns: CRMScript.Global.Integer - ID of associate who approved (or rejected approval) for this version. Example:

GetApprovedRegisteredBy()

Returns: CRMScript.Global.Integer - ID of associate who actually entered the approval; might be different from ApprovedBy (f.x. due to telephone consultation/approval). Example:

GetApprovedRegisteredDate()

Returns: CRMScript.Global.DateTime - When was approval granted or rejected. Example:

GetApprovedText()

Returns: CRMScript.Global.String - Text with comments on why approval was granted (or rejected) Example:

GetArchivedState()

Returns: CRMScript.Global.Integer - State that this quote version had, right before it was changed to Archived. See <xref href=“CRMScript.NetServer.QuoteVersionState” data-throw-if-not-resolved=“false”></xref>.
In this way we can show what happened before the archiving.
Example:

GetDeliveryCountryId()

Returns: CRMScript.Global.Integer - Country of delivery address, typically copied from the contact record. Example:

GetDescription()

Returns: CRMScript.Global.String - Description of Version. Potentially longer text description, typically used in a tooltip. Max 2K. Example:

GetERPDeliveryTermsKey()

Returns: CRMScript.Global.String - Either a ListId to an ID from a connector provided list, or, if the connection doesn’t support lists, a text. For instance ‘FOB’ (‘Free on board’). Example:

GetERPDeliveryTypeKey()

Returns: CRMScript.Global.String - Either a ListId to an ID from a connector provided list, or, if the connection doesn’t support lists, a text. For instance ‘Air’. Example:

GetERPPaymentTermsKey()

Returns: CRMScript.Global.String - Either a ListId to an ID from a connector provided list, or, if the connection doesn’t support lists, a text. For instance ‘Standard 30 days’. Example:

GetERPPaymentTypeKey()

Returns: CRMScript.Global.String - Either a ListId to an ID from a connector provided list, or, if the connection doesn’t support lists, a text. For instance ‘Invoice’. Example:

GetERPQuoteVersionKey()

Returns: CRMScript.Global.String - Key in the ERP system that uniquely identifies this Version within the ERP system (if available, the field may be empty). Example:

GetExpirationDate()

Returns: CRMScript.Global.DateTime - Last date the quote Version is valid, expiration is at midnight end of this day. Example:

GetExtraField1()

Returns: CRMScript.Global.String - Optional information added by Quote Connector; usable in the quote document merge process. Example:

GetExtraField2()

Returns: CRMScript.Global.String - Optional information added by Quote Connector; usable in the quote document merge process. Example:

GetExtraField3()

Returns: CRMScript.Global.String - Optional information added by Quote Connector; usable in the quote document merge process. Example:

GetExtraField4()

Returns: CRMScript.Global.String - Optional information added by Quote Connector; usable in the quote document merge process. Example:

GetExtraField5()

Returns: CRMScript.Global.String - Optional information added by Quote Connector; usable in the quote document merge process. Example:

GetFollowupId()

Returns: CRMScript.Global.Integer - Link to a follow-up activity, created when this quote version was sent to the customer. Example:

GetHasOwnDeliveryAddress()

Returns: CRMScript.Global.Bool - The delivery address is not the same as the contact’s Street address. Example:

GetHasOwnInvoiceAddress()

Returns: CRMScript.Global.Bool - The quote has an address for Invoicing. This will typically be copied from the company’s addresses. Example:

GetInvoiceCountryId()

Returns: CRMScript.Global.Integer - Country of invoice address, typically copied from contact record. Example:

GetLastRecalculated()

Returns: CRMScript.Global.DateTime - When this version was last subjected to a total recalculation.
This field must be set by the connector, since the connector may choose to ignore a RecalculateVersion call based on policies and possibly the current value of this field. SuperOffice will set this field to 1.1.1760 whenever any change occurs to the quote, to indicate that a recalculation is needed.
Example:

GetLikelyQuoteAlternativeId()

Returns: CRMScript.Global.Integer - The alternative that is considered most likely to be accepted. Used to calculate probable income. Example:

GetNumber()

Returns: CRMScript.Global.String - A quote number that the user (or ERP connector) can fill out. Example:

GetQuoteAlternatives()

Returns: CRMScript.NetServer.NSQuoteAlternative[] - The QuoteAlternatives for the NSQuoteVersion. Example:

GetQuoteId()

Returns: CRMScript.Global.Integer - Foreign key to CRM quote (the conceptual parent). Owning Quote of this Quote Version. Example:

GetQuoteVersionId()

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

GetRank()

Returns: CRMScript.Global.Integer - Rank/Version number, starts at 1 Example:

GetReason()

Returns: CRMScript.Global.String - If there was a problem, this field contains a localized explanation of the problem and possible steps to fix it that the user can be shown. Example:

GetRegistered()

Returns: CRMScript.Global.DateTime - Registered when. Example:

GetRegisteredAssociateId()

Returns: CRMScript.Global.Integer - Registered by whom. Example:

GetSentDate()

Returns: CRMScript.Global.DateTime - The date the version was sent to the customer. Example:

GetState()

Returns: CRMScript.Global.Integer - Current state of this quote version. See <xref href=“CRMScript.NetServer.QuoteVersionState” data-throw-if-not-resolved=“false”></xref>. Example:

GetStatus()

Returns: CRMScript.Global.Integer - If there was a problem with for instance calculation, this field is set to warning or error. See <xref href=“CRMScript.NetServer.QuoteStatus” data-throw-if-not-resolved=“false”></xref>. Example:

GetUpdated()

Returns: CRMScript.Global.DateTime - Last updated when. Example:

GetUpdatedAssociateId()

Returns: CRMScript.Global.Integer - Last updated by whom. Example:

SetApprovedBy(Integer)

Returns: CRMScript.Global.Void Example:

SetApprovedRegisteredBy(Integer)

Returns: CRMScript.Global.Void Example:

SetApprovedRegisteredDate(DateTime)

Returns: CRMScript.Global.Void Example:

SetApprovedText(String)

Returns: CRMScript.Global.Void Example:

SetArchivedState(Integer)

Returns: CRMScript.Global.Void Example:

SetDeliveryCountryId(Integer)

Returns: CRMScript.Global.Void Example:

SetDescription(String)

Returns: CRMScript.Global.Void Example:

SetERPDeliveryTermsKey(String)

Returns: CRMScript.Global.Void Example:

SetERPDeliveryTypeKey(String)

Returns: CRMScript.Global.Void Example:

SetERPPaymentTermsKey(String)

Returns: CRMScript.Global.Void Example:

SetERPPaymentTypeKey(String)

Returns: CRMScript.Global.Void Example:

SetERPQuoteVersionKey(String)

Returns: CRMScript.Global.Void Example:

SetExpirationDate(DateTime)

Returns: CRMScript.Global.Void Example:

SetExtraField1(String)

Returns: CRMScript.Global.Void Example:

SetExtraField2(String)

Returns: CRMScript.Global.Void Example:

SetExtraField3(String)

Returns: CRMScript.Global.Void Example:

SetExtraField4(String)

Returns: CRMScript.Global.Void Example:

SetExtraField5(String)

Returns: CRMScript.Global.Void Example:

SetFollowupId(Integer)

Returns: CRMScript.Global.Void Example:

SetHasOwnDeliveryAddress(Bool)

Returns: CRMScript.Global.Void Example:

SetHasOwnInvoiceAddress(Bool)

Returns: CRMScript.Global.Void Example:

SetInvoiceCountryId(Integer)

Returns: CRMScript.Global.Void Example:

SetLastRecalculated(DateTime)

Returns: CRMScript.Global.Void Example:

SetLikelyQuoteAlternativeId(Integer)

Returns: CRMScript.Global.Void Example:

SetNumber(String)

Returns: CRMScript.Global.Void Example:

SetQuoteAlternatives(NSQuoteAlternative[])

Returns: CRMScript.Global.Void Example:

SetQuoteId(Integer)

Returns: CRMScript.Global.Void Example:

SetQuoteVersionId(Integer)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetReason(String)

Returns: CRMScript.Global.Void Example:

SetRegistered(DateTime)

Returns: CRMScript.Global.Void Example:

SetRegisteredAssociateId(Integer)

Returns: CRMScript.Global.Void Example:

SetSentDate(DateTime)

Returns: CRMScript.Global.Void Example:

SetState(Integer)

Returns: CRMScript.Global.Void Example:

SetStatus(Integer)

Returns: CRMScript.Global.Void Example:

SetUpdated(DateTime)

Returns: CRMScript.Global.Void Example:

SetUpdatedAssociateId(Integer)

Returns: CRMScript.Global.Void Example: