MergeElementsTask Object Members in SuiteScript
The MergeElementsTask object in SuiteScript allows the merging of revenue elements, facilitating streamlined revenue recognition.
TL;DR Opening
The MergeElementsTask object in SuiteScript is critical for merging specified revenue elements to streamline revenue recognition processes. This object encapsulates a task that enables developers to manage complex revenue arrangements within their NetSuite environments.
What is the MergeElementsTask?
The MergeElementsTask is part of the SuiteScript module for accounting and recognition, specifically designed to handle tasks that require the merging of revenue elements. By using this object, developers can create, manage, and submit tasks that facilitate the consolidation of multiple revenue elements into a single revenue arrangement.
Object Description
This object allows you to create a merge task through the recognition.create(options) method. The MergeElementsTask.elements property is required for the task to be valid, while other properties offer additional configuration options.
Key Members of MergeElementsTask
The MergeElementsTask object comprises various members, including methods and properties:
| Member Name | Type | Description |
|---|---|---|
| MergeElementsTask.submit() | number (read-only) | Submits the merge task for processing and returns a task ID for identification. |
| MergeElementsTask.contractAcquisitionDeferredExpenseAccount | `number | string` (read-only) |
| MergeElementsTask.contractAcquisitionExpenseAccount | `number | string` (read-only) |
| MergeElementsTask.contractCostAccrualDate | JavaScript Date (read-only) | Specifies the cost accrual date for the new revenue arrangement, defaulting to today’s date and valid under certain conditions. |
| MergeElementsTask.elements | `Array<number | string>` (read-only) |
| MergeElementsTask.revenueArrangementDate | JavaScript Date (read-only) | Indicates the date of the new revenue arrangement, also defaulting to today’s date. |
Example Syntax
Here’s how you might implement the MergeElementsTask in your SuiteScript:
var recognitionTask = recognition.create({ taskType: recognition.TaskType.MERGE_ELEMENTS_TASK});recognitionTask.elements = elementsList;var taskStatusId = recognitionTask.submit();Supported Script Types
The MergeElementsTask is designed for use in server scripts within NetSuite, ensuring robust task performance and integration capabilities.
Governance
When executing the submit() method of the MergeElementsTask, be aware of governance limits. Each call can consume 20 units of governance.
Error Handling
- WRONG_PARAMETER_TYPE: This error will trigger if an invalid date format is supplied for
MergeElementsTask.contractCostAccrualDateorMergeElementsTask.revenueArrangementDateproperties.
Who This Affects
- Administrators: Manages revenue arrangements and task submissions.
- Developers: Implements the
MergeElementsTaskfunctionality in custom scripts.
Key Takeaways
- The
MergeElementsTaskis essential for merging revenue elements in SuiteScript. - It encapsulates properties needed for detailed revenue arrangement management.
- It's important to handle date formats correctly to avoid parameter type errors.
Frequently Asked Questions (4)
What properties are required to use the MergeElementsTask object?
How can I submit a MergeElementsTask in SuiteScript and what does it return?
What are the governance implications when using the submit() method on a MergeElementsTask?
What potential error should I be aware of when working with date properties in MergeElementsTask?
Was this article helpful?
More in Revenue Recognition
- Revenue Recognition Rules in NetSuite 2026.1
Revenue recognition rules in NetSuite 2026.1 enhance project financial accuracy. Explore key concepts and best practices.
- Enhancements to Revenue Automation Treatment Rules in NetSuite
Enhancements to Revenue Automation in NetSuite allow new criteria for treatment rules, providing broader control over revenue recognition.
- Enhanced Revenue Recognition on Project Pages in NetSuite...
Enhanced revenue recognition features improve financial management in NetSuite 2026.1 project pages.
- CSV Import Assistant for Revenue Recognition in NetSuite 2024.1
CSV Import Assistant enhancements for revenue recognition in NetSuite 2024.1 streamline data mapping and import processes.
Advertising
Reach Revenue Recognition Professionals
Put your product in front of NetSuite experts who work with Revenue Recognition every day.
Sponsor This Category