recognition.create(options)

Method Description

Creates a merge task that combines entire revenue arrangements or individual revenue elements.

Use values in the recognition.TaskType enum to specify the type of merge task to create. After you call this method to create a merge task, you must specify the properties of the merge task (such as MergeArrangementsTask.arrangements or MergeElementsTask.elements) before you submit the task using MergeArrangementsTask.submit() or MergeElementsTask.submit().

Returns

recognition.MergeArrangementsTask | recognition.MergeElementsTask

Supported Script Types

Server scripts

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

Governance

None

Module

N/task/accounting/recognition Module

Sibling Module Members

N/task/accounting/recognition Module Members

Since

2019.2

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.taskType

string

required

The type of merge task to create.

Use values from the recognition.TaskType enum for this parameter.

Errors

Error Code

Thrown If

INVALID_TASK_TYPE

The options.taskType parameter represents an invalid task type.

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.

            // Add additional code
...
var t = recognition.create({
    taskType: recognition.TaskType.MERGE_ELEMENTS_TASK
});
...
// Add additional code 

          

Related Topics

N/task/accounting/recognition Module

General Notices