Skip to content
Condition Split Strategy

Condition Split Strategy

The Condition Split Strategy enables developers to route trigger logic based on specific conditions.

This example shows how to use Breezz Triggers to trigger an error message if a Case with the origin set to “Phone” is being created with no description.

Step 1: Create a Trigger

While you can create a Trigger in several different ways, this example walks through creating one with the Breezz Environment Graph.

ℹ️ For more information about other ways of creating Triggers refer to the Triggers Configuration section.

  1. Navigate to the Breezz Environment Graph.
  2. Within the Breezz Environment Graph, select Trigger and choose Case.

Create Trigger

  1. Click the Trigger Icon.

ℹ️ Note: For additional information regarding the Breezz Environment Graph, please refer to the Environment Graph section.

Create Trigger Form

  1. Populate the configuration form with the following details:
  • Trigger Event: Select Before Insert or another event that should fire the trigger.
  • Records Split Strategy: Select Condition. Specify the conditions you want the trigger to fire on. For this example select Case Origin, Equals, Value, Phone.

If you haven’t created a Salesforce Trigger yet click the Generate Trigger Code button.

ℹ️ For more information about Generate Trigger Code button refer to the Triggers Configuration section.

  1. Click Save.

Step 2: Create a Step for the first Record Type

  1. In the Breezz Environment Graph click the Action Icon o the Step Group.

Environment Graph Action Icon

  1. Select Create Step.

Environment Graph Create Step Configure New Step

  1. Populate the configuration form with the following details:
  • Parent Group: Provide a name for the step.
  • Description: Provide a brief description of the step.
  • Entry Criteria: Select Description, Is Not Set.
  • Action Configuration: Select Custom Validation.
  • Choose From: Choose Plaint Text.
  • Error Message: Provide an error message, eg. Description is required for Phone cases.
  1. Leave the rest as it is and click Save.

Step 3: Verify the result

Create a Case with Case Origin Phone and don’t fill out the description field. You’ll see an error message.

Result