Global Functions

Global Functions

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

 Add Global Function

  1. Click New.

  2. Provide a name for your global function.

  3. Select the return type for the global function from the drop-down.

  4. Add a description, if needed.

  5. Specify the parameters and the return type for the parameters. Click  icon to add multiple parameters.

  6. Use the simple drag-and-drop action to select objects from the Deluge Script Editor onto the canvas.

  7. Click Save.

You can choose the return type and specify up to 10 parameters.
 


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 function.

Test Global Function    

After writing the custom schedules function,

  1. Click Save and Test.

  2. Specify the parameter values.

  3. 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.

 info {return-argument};
info context;
return true; 

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;
info context;
return true; 

For more details on Deluge, visit Deluge help guide.

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.



    • Related Articles

    • Request Custom Functions

      Request custom functions can be used in business rules, request custom triggers, request life cycle, and request timer actions. Using custom functions, you can perform automated actions on requests, other modules, and external applications. Go to the ...
    • Global Search

      The global search in the header pane allows you to search different types of records using various parameters. Depending on the current page, the global search changes the input record type. For example, if the current page is the request list view, ...
    • Deluge - A Programming Language

      Deluge, or Data Enriched Language for the Universal Grid Environment is Zoho's proprietary scripting language bundled with SupportCenter Plus. It is a high-level language that helps non-programmers code without any training. Unlike traditional ...
    • Executing Custom Function in Business Rule

      By executing custom functions in business rules, you can manipulate data in SupportCenter plus and other external applications. requestObj and context are the arguments supported in custom functions. Choose the required custom function from the list ...
    • Custom Scheduled Function

      SupportCenter Plus allows administrators to execute custom schedules using a built-in script execution tool called Custom Scheduled Function. The custom scheduled function scripts can be built from scratch using Deluge, Zoho's propriety scripting ...