Instantiating a Custom Plug-in Script in an XML Definition
To instantiate a custom plug-in script implementation in your code in SuiteCloud Development Framework (SDF), use the plugin.loadImplementation
function. For more information, see Instantiating a Custom Plug-in Script in SuiteScript 2.x.
To specify the custom plug-in type in a usereventscript
object, use the customplugintypes
and plugintype
fields. For example:
<usereventscript scriptid="customscript_docsign_suitescript_user_event">
...
<customplugintypes>
<plugintype>
<plugintype>[scriptid=customscript_doc_signing]</plugintype>
</plugintype>
</customplugintypes>
...
</usereventscript>
For additional information, see the usereventscript
element in SuiteCloud Development Framework XML Reference.