How to create Custom Functions, View Custom Function Execution History, and associate them through workflow?

How to create Custom Functions, View Custom Function Execution History, and associate them through workflow?

Custom Functions in Workflows:

Navigation: Settings  --> Other Settings --> Custom Function-->  + New Function
For the created custom function now, the workflow is associated with the following steps:

Custom Functions help you meet your unique business requirements. With these functions, you can write code in JavaScript, run your code within Zuper, and create a workflow for your users. 

 1. Select the “Settings” module from the left panel. 




2. Under “Other Settings,” choose “Custom Functions.”



3. Select “+ New Function” to add a new custom function.



4. To create a new function, fill in the following details

 Enter Function Name (Mandatory Field) – A unique name identifying the function.

 Choose Function Module (Mandatory Field) – From the dropdown box, choose the module for which the custom function is applicable.

 Enter Function Description – Enter the description of the custom function.

 

Based on the Sample Code data, you can create a function code and select “Save Function” to save the Custom Function. 



5. The custom function is successfully created.



Once a Custom Function is created, you can edit, activate/deactivate, view, and delete it.


 Associate a custom function through workflow:

For the created custom function now, the workflow is associated with the following steps:

1. Select the “Settings” module from the left panel. Under “Other Settings,” choose “Workflows.”



2. Select “+ New Workflow” to add a new workflow.



3.  Fill in the following details:

 i) Enter Workflow Name – Enter the name of the workflow.

 ii) Enter Workflow Description – Enter the description of the workflow.

 iii) Workflow Applicable To – Choose the applicable option for whom workflow is applicable.

 iv) Allow Update Done Through Workflow To Trigger a Workflow – Choose either “Yes” or “No.”

 When – Choose the Module and Event.

 If the following conditions are met – Choose the Field Name, Operator, and Job Category.

 Then do these actions – Select the Module and Action Type. Choose the type of operation as “Execute Custom Function”. Choose the Custom Function as an applicable custom field.

      

Now select “Save Workflow.”


4. The new workflow is set successfully.



Once a workflow is created, you can view, edit, activate/deactivate, view, and copy it. 

Custom Function Execution History

Settings -->Other Settings -->Custom Function --> Execution History

When you execute the custom function, you can find the history of the custom function in the “Execution History” section. 

1. Select the "Settings" module from the left panel, and under the “Other Settings”, select the "Custom Functions.”  



2. Click the “Execution History button on the right side. 


3. The “Execution History” listing page opens and click the “Eye” icon to view the list of custom function execution history.

 

4. The “Execution History” dialog box is displayed.

The businesses can get the records of the custom function executed in the past. 

    • Related Articles

    • How to setup a Workflow?

      Workflow Automation is a series of automated actions to be performed in a business process. When a set of conditions are true, automatically the set-action will be triggered. In Zuper, the Workflow is a system that allows a monotonous set of ...
    • How to create & manage Service Tasks?

      Our Zuper’s new feature, Service Tasks, helps the field executives complete each service task mapped to the jobs. Service tasks are used to create process steps, or checklists, for the field technician to follow when completing a work order and can ...
    • How to create Custom Team Fields?

      Navigation: Settings -->Custom Fields and Checklist Settings -->Team Fields You can create your own Custom Fields that are tailored to your business. Creating a custom field in the team custom fields module will be displayed on the New Team Creation ...
    • How to Create & Manage an Asset Inspection form Checklist in the V3 Zuper Web App?

      An asset inspection form serves as a checklist for the field technician to conduct asset inspections and record maintenance activities. These forms also play a crucial role in streamlining the inspection process and improving overall efficiency. For ...
    • How to create a Job on the Zuper Mobile app?

      Jobs are the heart of the Zuper Mobile App. It is the core of all field service operations. In Zuper Mobile App, you can create a new job. Create a new Job: 1. Select the "Jobs" module from the top-left hamburger icon . 2. Select the "+“ icon from ...