Skip to main content
Contains information about one batch task.

Constructors

NSBatchTaskInfo()

Initializes a new instance of the NSBatchTaskInfo class.

Methods

GetAssociateId()

Returns: CRMScript.Global.Integer - Task owner. If it is a System task, AssociateId = 0. Example:

GetContext()

Returns: CRMScript.Global.String - Context for the executing task. Example:

GetCreated()

Returns: CRMScript.Global.DateTime - Task creation time. Example:

GetDatabaseSerialNumber()

Returns: CRMScript.Global.String - Serial number of the database the task is to run on. Example:

GetDescription()

Returns: CRMScript.Global.String - Description of the task. Example:

GetDetailsRecord()

Returns: CRMScript.Global.Integer - Record ID of a row in the DetailsTable containing more info about the task. Example:

GetDetailsTable()

Returns: CRMScript.Global.Integer - ID of table with more information about the task. Example:

GetId()

Returns: CRMScript.Global.Integer - ID of the task. Example:

GetIsInternalTask()

Returns: CRMScript.Global.Bool - If true, this task will not add a trace to the database. Example:

GetIsSystemTask()

Returns: CRMScript.Global.Bool - If true, the task is not initiated by an associate. Example:

GetLastStarted()

Returns: CRMScript.Global.DateTime - When was the task last started. Example:

GetName()

Returns: CRMScript.Global.String - Name of the task. Example:

GetParameterObject()

Returns: CRMScript.Native.Map - ParameterObject will be serialized to a binary blob and saved in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord. Example:

GetProgressDescription()

Returns: CRMScript.Global.String - Descriptive text for the current stage. Example:

GetProgressPercent()

Returns: CRMScript.Global.Integer - Task progress, in percent of estimated total. Example:

GetRequest()

Returns: CRMScript.Global.String - Maps to the request field in the batchtask table. Example:

GetResponse()

Maps to the response field in the batchtask table.
Returns: CRMScript.Global.String Example:

GetResult()

Maps to the result field in the batchtask table.
Returns: CRMScript.Global.String Example:

GetStartCount()

Maps to the startcount field in the batchtask table.
Returns: CRMScript.Global.Integer Example:

GetState()

BatchTaskState of the task.
Returns: CRMScript.Global.Integer Example:

SetAssociateId(Integer)

Task owner. If it is a System task, AssociateId = 0.
Returns: CRMScript.Global.Void Example:

SetContext(String)

Context for the executing task.
Returns: CRMScript.Global.Void Example:

SetCreated(DateTime)

Returns: CRMScript.Global.Void Example:

SetDatabaseSerialNumber(String)

Serial number of the database the task is to run on.
Returns: CRMScript.Global.Void Example:

SetDescription(String)

Description of the task.
Returns: CRMScript.Global.Void Example:

SetDetailsRecord(Integer)

Record ID of a row in the DetailsTable containing more info about the task.
Returns: CRMScript.Global.Void Example:

SetDetailsTable(Integer)

ID of table with more information about the task.
Returns: CRMScript.Global.Void Example:

SetId(Integer)

ID of the task.
Returns: CRMScript.Global.Void Example:

SetIsInternalTask(Bool)

If IsInternalTask is true, this task will not add a trace to the database.
Returns: CRMScript.Global.Void Example:

SetIsSystemTask(Bool)

If IsSystemTask is true, the task is not initiated by an associate.
Returns: CRMScript.Global.Void Example:

SetLastStarted(DateTime)

Returns: CRMScript.Global.Void Example:

SetName(String)

Name of the task.
Returns: CRMScript.Global.Void Example:

SetParameterObject(Map)

Serializes a Map to a binary blob and saves it in the BinaryObject table. The link to the BinaryObject will be set using DetailsTable and DetailsRecord.
Returns: CRMScript.Global.Void Example:

SetProgressDescription(String)

Descriptive text for the current stage
Returns: CRMScript.Global.Void Example:

SetProgressPercent(Integer)

Task progress, in percent of estimated total
Returns: CRMScript.Global.Void Example:

SetRequest(String)

Maps to the request field in the batchtask table.
Returns: CRMScript.Global.Void Example:

SetResponse(String)

Maps to the response field in the batchtask table.
Returns: CRMScript.Global.Void Example:

SetResult(String)

Maps to the result field in the batchtask table.
Returns: CRMScript.Global.Void Example:

SetStartCount(Integer)

Maps to the startcount field in the batchtask table.
Returns: CRMScript.Global.Void Example:

SetState(Integer)

BatchTaskState of the task.
Returns: CRMScript.Global.Void
See <xref href=“CRMScript.NetServer.BatchTaskState” data-throw-if-not-resolved=“false”></xref>
Example: