Add the scripted extension point into a script include in the base application code.
To add the extension point, include an API call that identifies the location at which
registered custom artifacts execute.
Avant de commencer
Role required: You must have the
specific role for the developer or administrator of the application, or you must
have the admin role. You must first create a scripted extension point before
you can add it to a script include in the application code.
Procédure
-
In the application code, access the existing script include that you want to
add a scripted extension point to, or create a new script include.
-
In the script include, add a line of code at the location that you expect to
collect and process the custom script output.
The code must contain the GlideScriptedExtensionPoint - Scoped method that identifies the extension point against which the custom
script includes are registered. For example:
Remarque : It is also a good practice to deliver error messages for
application customizers when their custom scripts run in an extension
instance. If something fails when the function returns arguments to the
extension point, the error messages include information about how to
troubleshoot the custom script.