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 |
|
Sibling Module Members |
|
Since |
2019.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The type of merge task to create. Use values from the recognition.TaskType enum for this parameter. |
Errors
Error Code |
Thrown If |
---|---|
|
The |
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.
// Add additional code
...
var t = recognition.create({
taskType: recognition.TaskType.MERGE_ELEMENTS_TASK
});
...
// Add additional code