Custom functions allow users to manipulate data in AssetExplorer and other external applications. Custom functions are built on Deluge, Zoho's propriety scripting language.
Global functions are custom functions that can be called from custom actions configured for custom schedules. They can store information that is essential to connect with external applications, common functionalities, and configurations, all of which can be invoked from custom actions.
You can create and perform other actions on global functions from Admin > Developer Space > Custom Function > Global Function.
Role Required: SDAdmin
Add New Global Function
Use the New button to create a global function.
On the displayed page, 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.
Click Save.
Each global function will be assigned an internal name of format global_function_<id>. The internal name of a global function will be displayed on the header of the deluge editor. You can use this internal name to call the global function from a custom action.
Test Global Function
After writing the scheduled function, click Save and Test to test run the global function.
Specify the parameter values, and click Execute.
Output will be printed along with info statements that are used for debugging.
Debugging Tip
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.
For more details on Deluge, visit Deluge help guide.
Global Functions List View
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.