action.find(options)
Method Description |
Performs a search for available record actions. If only the This method returns a plain JavaScript object of NetSuite record actions available for the record type. The object contains one or more action.Action objects. If there are no available actions for the specified record type, an empty object is returned. If the |
Returns |
Object |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Sibling Object Members |
|
Since |
2018.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The record type. For a list of record types, see record.Type. |
|
string |
optional |
The record instance ID. |
|
string |
optional |
The action ID. |
Errors
Error Code |
Thrown If |
---|---|
|
The specified record ID does not exist. |
|
The specified action does not exist on the specified record type. – or – The action exists, but cannot be executed on the specified record instance. |
|
The specified record type is invalid. |
|
The |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/action Module Script Samples.
// Add additional code
...
var actions = action.find({
recordType: 'timebill',
recordId: recordId
});
...
// Add additional code