RecordActionTask Object Members in SuiteScript for NetSuite
Explore RecordActionTask object members in N/task for SuiteScript applications.
The N/task module's RecordActionTask object is crucial for managing asynchronous record actions in NetSuite's SuiteScript environment. This module allows developers to automate and efficiently manage tasks by placing them in an internal scheduling queue, supporting various task types including submitting scheduled scripts, running map/reduce scripts, importing CSV files, and more.
What is RecordActionTask?
RecordActionTask is an object within the N/task module designed to handle the scheduling and execution of record-related tasks asynchronously. This functionality allows for efficient task handling without blocking other script executions.
Key Object Members
Here are the primary members available within a RecordActionTask:
| Member Type | Name | Return Type / Value Type | Description |
|---|---|---|---|
| Method | RecordActionTask.submit() | string | Submits a record action task for processing and returns its task ID. |
| Property | RecordActionTask.action | string | The ID of the action to be invoked. |
| Property | RecordActionTask.condition | Object | The condition used to select record IDs for which the action is to be executed. |
How to Use RecordActionTask
To use RecordActionTask, developers must configure the task with the necessary conditions and actions, and then submit it for processing. This asynchronous execution ensures that the task executes without blocking other processes, making it ideal for scenarios that require large-scale record manipulations.
Who This Affects
- Developers: Looking to leverage SuiteScript for advanced task automation.
- NetSuite Administrators: Managing complex scripting configurations within the system.
Key Takeaways
RecordActionTaskis part of theN/taskmodule in NetSuite, designed for asynchronous execution of record actions.- Critical for developers needing to automate tasks without blocking other script processes.
- Includes key members like
submit(),action, andconditionto configure and manage record tasks effectively.
Frequently Asked Questions (4)
What script types support the RecordActionTask object?
Are there specific methods available for configuring RecordActionTask?
Can I use RecordActionTask for merging duplicate records in NetSuite?
What tasks can be performed asynchronously with RecordActionTask?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Custom Tool Script Enhancements in NetSuite
Custom tool scripts in NetSuite gain execution log support and a new management page in February 16, 2026.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
