Manage custom functions

Manage custom functions

You can perform the following actions for functions:
  1. Create function
  2. Edit function
  3. Delete function
  4. Create function from gallery

Create function

To create custom function:
  1. Click the gear icon at the top-right. The settings window will appear.
  2. Select Custom Functions under Automation.
  3. Click the Create dropdown button. 

  4. Select the Function. The Create Custom Functions window will appear.
  5. Enter Display Name.
  6. Enter Function Name.
    Note: According to the general naming convention, function name cannot contain spaces.
  7. Select Category as Automation.
  8. Select the Module in which the function needs to be executed.
  9. Select the Trigger Event at which the function needs to be executed. The trigger events are dependent on the module that you select.
  10. Provide a Description of the function.
  11. Enter Parameter Name and select the Parameter Value. Or, provide custom parameters and values.
    Note: A parameter is a variable assigned to a value in a function. The parameter value is the information passed in the function. In other words, the parameter name is the container and the parameter value is the information contained in it. These allow you to build a logical script into which actual input data can be passed when the function is invoked
  12. Script the function using the Deluge script builder.

  13. Click Save to complete creating the function or click Save and Execute to complete creating the function and execute it.

Edit function

To edit custom function:
  1. Go to the listing page of Custom Functions.
  2. Hover on the Function that needs to be edited. The wheel icon will appear.
  3. Click the dropdown arrow.
  4. Select Edit. The Edit Custom Action window will appear.
  5. Make the changes.
  6. Click Save to save the changes.

Delete function

To delete custom function:
  1. Go to the listing page of Custom Functions.
  2. Hover on the Function that needs to be edited. The wheel icon will appear.
  3. Click the dropdown arrow.
  4. Select Delete. A confirmation pop-up will appear.
  5. Click the Delete button. The function will be deleted and removed from the listing page.

Create gallery function

To create custom function using gallery functions:
  1. Click on the setup icon to navigate to the Setup page.
  2. Select Automation .
  3. Select Custom Functions.
  4. Click the dropdown arrow on the Function button.
  5. Select Gallery Function.
  6. Hover on the required function.

  7. Click the Create button. The Create Custom Function window will appear.
  8. Enter Display Name
  9. Enter Function Name.
    Note: According to the general naming convention, function name cannot contain spaces.
  10. Select Category as Automation.
    Note:
    1. The Module, Description, Parameter Names, and Parameter Values are predetermined based on the logic of the probable scenarios. You can edit them if necessary.
    2. A parameter is a variable assigned to a value in a function.
    3. The parameter value is the information passed in the function. In other words, the parameter name is the container and the parameter value is the information contained in it. These allow you to build a logical script into which actual input data can be passed when the function is invoked.
  11. Select the Trigger Event at which the function needs to be executed. The trigger events are dependent on the module selected.
  12. Edit the existing script in the Deluge script builder to suit your requirement.
  13. Click Save to complete creating the function or click Save and Execute to complete creating the function and execute it.