MergeArrangementsTask.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. Before you call this method to submit a merge task, you must populate the properties of the recognition.MergeArrangementsTask object (such as MergeArrangementsTask.arrangements, MergeArrangementsTask.contractAcquisitionExpenseAccount, and so on). |
Returns |
number |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
20 units |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2019.2 |
Errors
Error Code |
Thrown If |
---|---|
|
The MergeArrangementsTask.arrangements property is empty. |
|
No revenue elements were found for the revenue arrangements specified in the MergeArrangementsTask.arrangements property. |
|
An invalid date format is specified in the MergeArrangementsTask.contractCostAccrualDate property or the MergeArrangementsTask.revenueArrangementDate property. |
Syntax
The following code sample 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_ARRANGEMENTS_TASK
});
var taskStatusId = recognitionTask.submit();