Global functions are custom functions that can be called from custom functions configured for request They can store information that is essential to connect with external applications, common functionalities, and configurations, all of which can be invoked from custom functions.
You can access global functions from the following location:
Old UI: Admin > Incident Management > Custom Function > Global Functions
New UI: Admin > Automation > Custom Function > Global Functions
Provide a name for your global function.
Select the return type for the global function from the drop-down.
Add a description, if needed.
Specify the parameters and the return type for the parameters. Click icon to add multiple parameters.
Use the simple drag-and-drop action to select objects from the Deluge Script Editor onto the canvas.
After writing the custom schedules function,
Click Save and Test.
Specify the parameter values.
Output will be printed along with info statements that are used for debugging.
When you test a global function, you can debug the code and print the output by using a statement called info.
For example, to understand the structure of string priority, date created on you can simply run the following script and study the response.
info string priority,date created on;
For more details on Deluge, visit Deluge help guide.
After creating global functions, you can manage them from the list view as follows:
Click the icon to edit or delete a custom action. To delete custom actions in bulk, select the custom actions and click Delete on the toolbar.
Use keywords to search for global functions from the search bar.