Update Fields 

Update Fields action allows you to automatically updates one or more fields, when the mentioned criteria are succeeded.

Setting up Workflow Action to Update Field.

Scenario: Calculate the period of Support, the difference in days between the Support start date and end date, the result value to update in the mentioned field.

 

  1. Go to Main Menu > CRM Settings > Automation > Workflow.
  2. Click on "New workflow".


  3. Create a Workflow 


    1. The New Workflow edit form will appear, provide the required details.
    2. "Workflow Name", provide the name of the Workflow. 
    3. "Description", provide the description of the Workflow.
    4. Select the preferred Module from the "Target Module" drop-down. For example, we would be using the Tickets module.
    5. "Status", specify the status of the Workflow Active or Inactive. the Workflow will be executed when the status is set to active.

  4. Workflow Trigger 


    1. Select the Ticket updated (includes Creations) option under the Trigger Workflow block.
    2. Select Only first-time conditions are met under the Recurrence section.

  5. Under the ‘Workflow Condition’ tab, Click on the Add Condition and provides the required conditions to execute the task.


  6. Under the ‘Workflow Actions’ Click on the Add Action drop-down tab and Click on Update Fields.


  7. The Update Fields window will pop up, provide the required details.


    1. "Action Title" Provide the name of the action, this is just for internal reference.
    2. Click the "Add Field" button, this opens a small window.
    3. Choose the Destination field from the drop-down. For example, we would be using the Support Period field as a destination field.
    4. Click inside the space provided on the right side.

  8. Set Value Window will Popup with the following three options is displayed. 



    1. Raw text: You must manually enter the value the destination field must take.
    2. Field: When you select this option, you choose a field from where the value must be copied to the destination field.
    3. Expression: This option lets you use fields to form calculate expressions, the value of which will be updated in the destination field. 
    You can also use ready-made functions from the Use Functions drop-down insert.



    Check more about Workflow Expression here. 


  9. Select Expression from the drop-down, this allows you to enter the expression to calculate the Support Period.
  10. Click on the Use Function drop-down and select "time_diffdays(a,b)"


  11. Click on the Use Field drop-down and select Start Date and End Date, you will be getting a field token, Copy the token and paste it into accurate locations. For Example, where the first parameter is an End Date on the "a" and the second parameter is Start date on the "b"


  12. Click on the Save Button, This will closes the Set Value pop-up window.
  13. Click on the Save button to save the workflow. This will closes the window opened in Step 3.

    As a result When you enter the details of the Tickets and you choose Picklist Ticket's status as "Closed", and update the start and end date, the Support Period field will be calculated and updated automatically.







Was this article helpful?

Can't find what you're looking for? Submit Ticket