back to knowledgebase

How can I set up Workflow?

Updated: 31 May 2022 15:34:31 OpenCRM::Settings

What is Workflow? What can I do with it?

A Workflow is a pre-defined series of actions that are triggered by a specific condition. They can include the creation of Activities or other records, the addition or removal of a Warning, and updating linked records when another record changes or is viewed.

Important:

You will need administrative and/or configuration access to setup a Workflow.

Also, you cannot use Bulk Update to trigger workflow.

Creating a Workflow

  1. Go to Settings->Workflow & Automation->Workflow
  2. Click Workflow Rules. You'll see the following disclaimer screen which alerts you to the fact that you are configuring an action that has the potential to affect your data. Type YES and then hit OK.

     
  3. You now have the option to select NEW to create some new Workflow, or click the Edit link on any existing Workflow rules that are configured. Clicking on New will present a screen that looks like this.



     

  4. Give your Workflow a name and description, then select the module that will trigger the change. In this example, I've selected Contacts because I want to trigger a Warning message to appear when the Do Not Email button is ticked.

  5. I've set the trigger as "On Save" because I want this to happen when someone changes the Contact record manually. There are several options, however, for the trigger:
                            
                                   "OnEdit" will trigger the Workflow when someone goes into the Edit screen of a record that matches the conditions.
                                   "OnConsult" will trigger the Workflow when someone views in the Consult screen of a record matching the conditions.
     
  6. Next you will want to set your conditions. You have two options here before you even start picking which conditions you want to target:
    1. Match ANY of the conditions - Think of this as an "or" option. So in the example below, your workflow will be run against Contacts who have Do not Email ticked OR those with the job title "Former Employee" OR both
    2. Match ALL of the conditions - This is the "and" option. It will only run if a Contact has both Do Not Email ticked AND the job title "Former Employee"

    3. New Records - A condition (or set of conditions) that matches on a new record will cause workflow to trigger. This includes "Changed" field conditions. So you could use a field "Changed" condition to always trigger a workflow rule on new record creation.
    4. Existing Records - A condition (or set of conditions) that matches on an existing record will only trigger once all the conditions are met and will not trigger again unless the record is changed (and saved) such that the conditions no longer are met, and then is changed/saved again so that the conditions match again. (i.e. repeated saves of a record without making any changes won't continue to trigger workflow even if all the conditions still match)  
      Conditions Notes
       =   Value in the field is an exact match to the condition specified (case insensitive) 
       <=  Value in the field is less or equal  to the condition specified 
       >=  Value in the field is greater or equal  to the condition specified
       !=  Value in the field does NOT equal  the condition specified
       Begins With  Value in the field begins with the value specified in the condition
       Ends With  Value in the field ends with the value specified in the condition
       Contains  Value in the field contains value specified in the condition
       Changed  Value in the field has changed (or this is a new record)

       

  7. Once you have set your Condition(s), you will need to set up the Action(s). This are the changes that will take place when a record meets the triggered Condition(s). In this example, I am going to add a Warning to the Contact record, and reassign the Contact to our Telesales manager Maggie.



    You have numerous options for these actions:

     

    • Update Self - This will make an amendment to the record that triggered the Workflow
    • Create New - This will create a new record in a module of your choosing. If you would like it to link to the triggering record you must select the box. Any mandatory field in the module will be added to the action, you must fill in these fields.
    • Update Linked - This will updated all records in the chosen module that are linked to the triggering record. (i.e. all Activities will be marked as Done)
    • Send Notification - This will send a notification to the chosen User
    • Run Actionplan - If you already have an Action Plan set up, you may choose to use this. (What is an Action Plan?)
    • Add Warning - This will add a warning to the triggering record, make sure you give it a code or you will not be able to remove the Warning using Workflow.
    • Remove Warning - If you know the code of the warning, you can also remove a warning from the triggering record using Workflow. This will only work with Warnings that have been added using Workflow as this will be where you define the code.
    • Clear/ Update/ Wipe - these further options are designed to help you manage your data retention. For more information on these tools please see: https://opencrm.co.uk/help/?kb=8315915&article=How-do-I-use-the-Data-Retention-tools-in-OpenCRM-GDPR

    Date fields give you the option of scheduling records for a set number of days, weeks, months, or years for a date before or after the date the record triggers the Workflow.

    If you would like to link to a secondary existing record, just select the field and start typing. You will be given a series of options to chose from where any matches are found:



    All picklists should be populated in the Workflow window, if one is not populate, please contact support.


     
  8. When you have finished with your Workflow, simply click Save.
    If, at any time, you need to alter or update your Workflow simply go to Settings->Workflow & Automation->Workflow and click the Edit link next to the Workflow you would like to change. You can also delete Workflows in this window by clicking the "X".

 

 

Copying information from one module to another

You can use workflow to inherit information that could not otherwise be mapped from one module to another.

An example of this would be copying the Assigned to from a Company record onto linked Projects.

Important: You can only copy data from the originating record, not another dependent record.

In the example below, the workflow is set up to copy the Assigned to from the Company onto all linked Projects, while setting the Assigned to on linked Contracts to a particular user.

The first action (highlighted in red) shows:

  1. Circle: the field being populated on the linked Project
  2. Arrow: which action I want to take, for this linked Project I have selected Inherit
    1. Once you select inherit, you'll be able to choose a field from the originating record.
    2. It does not have to be the same field (i.e. Assigned to). 
  3. Rectangle: the field being copied from the originating record (which is a Company with type = Customer in this case)

The second action (highlighted in blue) shows the same:

  1. Circle: the field being populated on the linked Contract
  2. Arrow: the action I want to take, in this case I want a set value on ALL linked Contracts, regardless of who the Company is assigned to
    1. When I select "Set Value" this pulls the information from the module being updated, not the originating module
  3. Rectangle: my selected value 

 

  • Update Self - This will make an amendment to the record that triggered the Workflow
  • Create New - This will create a new record in a module of your choosing. If you would like it to link to the triggering record you must select the box. Any mandatory field in the module will be added to the action, you must fill in these fields.
  • Update Linked - This will updated all records in the chosen module that are linked to the triggering record. (i.e. all Activities will be marked as Done)
  • Send Notification - This will send a notification to the chosen User
  • Run Actionplan - If you already have an Action Plan set up, you may choose to use this. (What is an Action Plan?)
  • Add Warning - This will add a warning to the triggering record, make sure you give it a code or you will not be able to remove the Warning using Workflow.
  • Remove Warning - If you know the code of the warning, you can also remove a warning from the triggering record using Workflow. This will only work with Warnings that have been added using Workflow as this will be where you define the code.
  • Clear/ Update/ Wipe - these further options are designed to help you manage your data retention. For more information on these tools please see: https://opencrm.co.uk/help/?kb=8315915&article=How-do-I-use-the-Data-Retention-tools-in-OpenCRM-GDPR

Rate This Article
  • 1 star
  • 2 star
  • 3 star
  • 4 star
  • 5 star
Feedback and Comments
captcha code  


You may also be interested in: