Skip to content
Record Type Split Strategy

Record Type Split Strategy

The Record Type Split Strategy enables developers to route trigger logic based on specific record types.

This example demonstrates how to automatically assign Case priority based on Record Type using Breezz Triggers.

Step 1: Create a Trigger for the first Record Type

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 Record Type.
  • Record Split - Record Type: Select the Record Types you want the trigger to fire on.

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

  1. Select Create Step.

Enrivonment Graph Create Step 1 Configure New Step 1

  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.
  • Action Configuration: Select Modify Context Record.
  • Record Configuration: Select Priority, Value, High.
  1. Leave the rest as it is and click Save.

Step 3: Create a Trigger for the second Record Type

Once the handler for the first record type is configured, you can create one for the second.

  1. On the Breezz Environment Graph click the Action Icon on the Before Insert Trigger.

Environment Graph Action Icon 2

  1. Select Create Handler.

Environment Graph Create Handler Configure New Trigger Handler

  1. Populate the configuration form with the following details:
  • Trigger Event: Select Before Insert or another event that should fire the trigger and provide a unique name.
  • Records Split Strategy: Select Record Type.
  • Record Split - Record Type: Select a different Record Types you want the trigger to fire on.
  1. Click Save.

Step 4: Create a Step for the second 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 2 Configure New Step 2

  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.
  • Action Configuration: Select Modify Context Record.
  • Record Configuration: Select Priority, Value, High.
  1. Leave the rest as it is and click Save.

Step 5: Verify the result

Create two Cases using the Record Types you configured triggers for, and verify that their priorities are automatically set to High and Medium.

Result