MergeElementsTask.submit()

Method Description

Submits the merge task for processing.

This method returns a task ID that uniquely identifies the merge task. This task ID also represents the submission ID of the internal bulk process that performs the merge.

Returns

number

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

20 units

Module

N/task/accounting/recognition Module

Parent Object

recognition.MergeElementsTask

Sibling Object Members

MergeElementsTask Object Members

Since

2019.2

Errors

Error Code

Thrown If

WRONG_PARAMETER_TYPE

An invalid date format is specified in the MergeElementsTask.contractCostAccrualDate property or the MergeElementsTask.revenueArrangementDate property.

Syntax

Important:

The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/task/accounting/recognition Module Script Samples.

            var recognitionTask = recognition.create({
    taskType: recognition.TaskType.MERGE_ELEMENTS_TASK
});

recognitionTask.elements = elementsList;
var taskStatusId = recognitionTask.submit() 

          

Related Topics

N/task/accounting/recognition Module

General Notices