plugin.findImplementations(options)
Method Description |
Returns the script IDs of custom plug-in type implementations. Returns an empty list when there is no custom plug-in type with the script ID available for the executing script. |
Returns |
A string[] containing a list of custom plug-in implementation script IDs. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2016.1 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The script ID of the custom plug-in type. |
2016.1 |
|
boolean |
optional |
The default value is true, indicating that the default implementation should be included in the list. |
2016.1 |
Syntax
The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see N/plugin Module Script Sample.
//Add additional code
...
var impls = plugin.findImplementations({
type: 'customscript_sample_plugin'
});
...
//Add additional code