Validating a Custom Plug-in in an XML Definition
SuiteCloud Development Framework (SDF) includes the following validations for custom plug-ins:
-
The
scriptid
attribute is required for theplugintype
andpluginimplementation
elements. Thescriptid
attribute value must match the filename and exclude the file extension. -
For
plugintype
objects, each method field must contain a unique value. -
The
class
field is mandatory for SuiteScript 1.0 custom plug–ins. Theclass
field is not used for SuiteScript 2.x custom plug-ins. For information about SuiteScript versions, see SuiteScript Versioning Guidelines. -
The SuiteScript version of a custom plug-in implementation must match the SuiteScript version of its plug-in type. For example, a SuiteScript 2.x custom plug-in type must only have SuiteScript 2.x custom plug-in implementations.
-
After the first time the custom plug-in implementation is deployed, its custom plug-in type cannot be changed.