Modules
Objects/Functions
SuiteScript 2.0
{plugin}.loadImplementation({type: {string*},implementation: {string}})
N/config Module
plugin.loadImplementation()
Method Description:
Instantiates an implementation of the custom plugin type.
Returns the implementation which is currently selected in the UI (Manage Plug-ins page) when no implementation ID is explicitly provided.
Returns:
An Object implementing the custom plug-in type.
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/config Module
Since:
2016.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=plugin.loadImplementation(options)
Example:
// Code Example 1
//Add additional code
//...
var pl = plugin.loadImplementation({
type: 'customscript_sample_plugin'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4558229654.html