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

N/task/accounting/recognition Module

Parent Object

recognition.MergeArrangementsTask

Sibling Object Members

MergeArrangementsTask Object Members

Since

2019.2

Errors

Error Code

Thrown If

NO_REVENUE_ARRANGEMENT_IDS_ARE_INCLUDED_IN_YOUR_INPUT

The MergeArrangementsTask.arrangements property is empty.

NO_REVENUE_ELEMENTS_WERE_FOUND_FOR_THE_REVENUE_ARRANGEMENT_IDS_YOU_INPUT

No revenue elements were found for the revenue arrangements specified in the MergeArrangementsTask.arrangements property.

WRONG_PARAMETER_TYPE

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

Syntax

Important:

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(); 

          

Related Topics

N/task/accounting/recognition Module

General Notices