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.

Before you begin

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.
Note: To learn about application-specific administrator roles and delegated development, see Access control rules in application administration apps and Delegated development and deployment.

Procedure

  1. 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.
    To learn more about creating script includes, see Script includes.
  2. 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:

    Script include with Call getExtensions command in application code
    Note: 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.