Skip to main content

Constructors

NSSale()

Initializes a new instance of the NSSale class.

Methods

Returns: CRMScript.Global.Integer - The number of active ERP links. Example:

GetAmount()

Returns: CRMScript.Global.Float - Total sale amount. Example:

GetAssociateFullName()

Returns: CRMScript.Global.String - The sale’s owner. Example:

GetAssociateId()

Returns: CRMScript.Global.Integer - The sale’s owner Id. Example:

GetCompleted()

Returns: CRMScript.Global.Integer - The Sale completed state.
The completed state is either Started or Completed. NotStarted is treated as Started. The value maps to the Done database field.
Example:

GetContactId()

Returns: CRMScript.Global.Integer - Optional contact reference. Example:

GetContactName()

Returns: CRMScript.Global.String - Contact name. Example:

GetCurrency()

Returns: CRMScript.Global.String - NSCurrency the sale was made in. Example:

GetDescription()

Returns: CRMScript.Global.String - The sales description. Example:

GetEarning()

Returns: CRMScript.Global.Float - Earning on sale. Example:

GetEarningPercent()

Returns: CRMScript.Global.Float - Earning as percent of total. Example:

GetNextDueDate()

Returns: CRMScript.Global.DateTime - Next due date, this is a de-normalization of ‘closest future activity date, or most recent if no future activities’.
Maintained by the system, but very convenient for searching.
Example:

GetNumber()

Returns: CRMScript.Global.String - Alphanumeric user field. Example:

GetPersonFullName()

Returns: CRMScript.Global.String - The name of the person this sale belongs to. Example:

GetPersonId()

Returns: CRMScript.Global.Integer - The sale’s contact persons Id. Example:

GetProbability()

Returns: CRMScript.Global.Integer - Actual probability, may differ from the one in the list. Example:

GetProjectId()

Returns: CRMScript.Global.Integer - Optional project reference. Example:

GetProjectName()

Returns: CRMScript.Global.String - Project name. Example:

GetSaleDate()

Returns: CRMScript.Global.DateTime - (expected / lost / won) sales date. Example:

GetSaleId()

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

GetSaleTypeId()

Returns: CRMScript.Global.Integer - The sale’s type Id. Example:

GetSaleTypeName()

Returns: CRMScript.Global.String - The sale’s type name. Example:

GetStatus()

Returns: CRMScript.Global.Integer - The sale’s status, indicating wether the sale is open, sold or lost. See <xref href=“CRMScript.NetServer.SaleStatus” data-throw-if-not-resolved=“false”></xref>. Example:

GetTitle()

Returns: CRMScript.Global.String - Sale heading (short description?). Example:

GetWeightedAmount()

Returns: CRMScript.Global.Float - The weighted amount ( amount * probability / 100). Example:
Returns: CRMScript.Global.Void Example:

SetAmount(Float)

Returns: CRMScript.Global.Void Example:

SetAssociateFullName(String)

Returns: CRMScript.Global.Void Example:

SetAssociateId(Integer)

Returns: CRMScript.Global.Void Example:

SetCompleted(Integer)

Returns: CRMScript.Global.Void
The completed state is either Started or Completed. NotStarted is treated as Started. The value maps to the Done database field.
Example:

SetContactId(Integer)

Returns: CRMScript.Global.Void Example:

SetContactName(String)

Returns: CRMScript.Global.Void Example:

SetCurrency(String)

Returns: CRMScript.Global.Void Example:

SetDescription(String)

Returns: CRMScript.Global.Void Example:

SetEarning(Float)

Returns: CRMScript.Global.Void Example:

SetEarningPercent(Float)

Returns: CRMScript.Global.Void Example:

SetNextDueDate(DateTime)

Maintained by the system, but very convenient for searching.
Returns: CRMScript.Global.Void Example:

SetNumber(String)

Alphanumeric user field
Returns: CRMScript.Global.Void Example:

SetPersonFullName(String)

Returns: CRMScript.Global.Void Example:

SetPersonId(Integer)

Returns: CRMScript.Global.Void Example:

SetProbability(Integer)

Returns: CRMScript.Global.Void Example:

SetProjectId(Integer)

Returns: CRMScript.Global.Void Example:

SetProjectName(String)

Returns: CRMScript.Global.Void Example:

SetSaleDate(DateTime)

Returns: CRMScript.Global.Void Example:

SetSaleId(Integer)

Returns: CRMScript.Global.Void Example:

SetSaleTypeId(Integer)

Returns: CRMScript.Global.Void Example:

SetSaleTypeName(String)

Returns: CRMScript.Global.Void Example:

SetStatus(Integer)

Returns: CRMScript.Global.Void Example:

SetTitle(String)

Returns: CRMScript.Global.Void Example:

SetWeightedAmount(Float)

Returns: CRMScript.Global.Void Example: