Skip to main content
All CollectionsWorkflow ManagerCreate a Workflow Trigger in a Project
Create a Workflow Trigger for Custom Objects in a Project
Create a Workflow Trigger for Custom Objects in a Project

This article helps you understand how to create a workflow trigger for custom objects in a project.

Updated over 8 months ago

Pre-requisites:

  • Required role privilege 'Manage Workflow Rules' on the project where a workflow trigger needs to be created.

Steps to create a workflow trigger event on a custom object is as mentioned below:

You have an option to configure a workflow trigger for custom objects right after publishing a workflow from the workflow designer. In such a case, you will get a prompt message stating 'Do you want to configure a Trigger now?'. Here, click on 'Yes' option and follow the steps as below - from step number 3 onwards.

1. Navigate to 'Workflows' tab and select the project.

2. Click on 'Create Trigger' button to start creating a trigger event.

Alternately, right click on project name and select 'Create Trigger' option.

3. Enter required details for all the mandatory fields in 'Configure Trigger' screen:

3.1. Name - Name of the trigger.

3.2. Priority - At any given point of time, only one running workflow is allowed. Below are the key factors to be considered while setting the priority of a workflow:

  • A new workflow can get kicked off only when the earlier workflow is completed.

  • To decide which trigger gets precedence when there are multiple triggers with matching conditions, you can use the priority field. The trigger with higher priority will be kicked off first, then the triggers with lesser priorities will be kicked off one by one.

  • All the triggers will execute which are configured with system tasks event, while only one trigger will execute which is configured with workflow definition event.

  • If there are more than one triggers with matching conditions and priority, then any one of them will get kicked off. In case this particular trigger fails, the next trigger with matching condition would be initiated right away.

3.3. Description - A brief description about the trigger to be created.

3.4. Context - Select the trigger context as 'Custom Object'.

3.5. Custom Object Template - Select 'ISS Issue' option and continue.

3.6. Trigger Conditions - You can create various trigger conditions using 'AND' / 'OR' (Logical Operators).

Workflow triggers for custom objects can currently be created only based on 'CustomObject Status'.

Rule is the single logical statement created based on one or more conditions defined by the user.

The trigger is executed based on this statement under different matching conditions. You can see the actual rule (statement) that will get applied based on the conditions defined for workflow trigger just like below:

Different brackets and text colors used to present the applied rule can make it easy for you to understand how the workflow trigger would actually get applied based on the conditions entered, irrespective of the complexity of the rule.

Working of logical operators:-

------------------------------------------------------------------------------------------------------------------

<Condition 1> <logical operator (AND)> <Condition 2>

Description:- For 'AND' logical operator, both conditions must be satisfied (true).

<Condition 1> <logical operator (OR)> <Condition 2>

Description:- For 'OR' logical operator, any condition should be satisfied (true).

------------------------------------------------------------------------------------------------------------------

If I want the workflow to trigger when a new issue is created having 'Open' status. I need to select:

Condition One: CustomObject Status is equal to 'Open'

You can use further combinations of logical operator to cover a business process.

3.7. Trigger Event - Select appropriate event which should trigger the workflow (as configured by user). Trigger event can be:

Event Name

Description

Supported Task Mode

Support for Groovy Script

Create Custom Object

When a new custom object is created

Post

Yes

Update Custom Object

When an existing custom object is updated

Post

Yes

3.8. Task Mode - Select the task mode for which this trigger will be used.

  • Post - An event which is executed after completion of desired event i.e. creation of a custom object. Post task mode is currently available for all custom object events.

3.9. Task - Select relevant system task if this trigger is for an independent system task or select relevant workflow definition if this trigger is for a workflow.

4. Click on 'Create' to complete creating a trigger event for the workflow on selected custom object.



Did this answer your question?