Task Custom Function

Task custom functions are used in task custom triggers. You could execute task custom functions as custom actions and global functions. While custom actions can be directly invoked in task custom triggers, global actions can be called in task custom actions.

 

To create task custom functions, go to Admin >> Helpdesk Customizer >> Task Custom Function.

Custom Actions

Custom actions are actionable custom functions that allow users to manipulate data in ServiceDesk Plus and other external applications. Custom functions are built on Deluge, Zoho's propriety scripting language.

Custom actions can be used in Task Custom Triggers to perform actions on tasks, other modules, and external applications.

Use the following pointers to create, enable, disable, and delete custom actions.

 

Add a New Custom Function

As demonstrated in the following screenshot, 'taskObj' and 'context' will be passed as arguments for the custom function:

 

 

You must write the custom function with taskObj as the argument.

After executing the custom function, the Map data type will be returned in the following format:


{

"message":"Executed successfully",

"status":"success/failure"

}

 

Test Execution of Scripts

After writing the custom function, you can test it by following the steps given below:

 

 

Debugging Tip

When you test a custom function, you can debug the code and print the output by using a statement called info. For example, to understand the structure of taskObj and context, you can simply run the following script and study the response.

 

info
taskObj;
info context;
return true;

 

For more details on Deluge, visit Deluge help guide.