Loading
Salesforce now sends email only from verified domains. Read More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          State Transition Rule Examples

          State Transition Rule Examples

          There are many ways to use expressions to reference base object and linked object fields in State Transition Rules.

          An expression in a State Transition Rule:

          • Can include any operators and functions in the Function Reference.

          • Must evaluate to true or false

          • Is usually based on field values in the base object and/or linked objects

          A base object and a linked object can be related in two ways:

          • The base object has a lookup field that references the linked object directly, such as ContactId.

          • One or more base object field values match one or more linked object field values. For example, an Application__c object and a ProviderContactLicense__c object both have fields that reference a Contact Id.

          In either case, the linked object must be configured for use in the rules. For details, see Workflow for Creating State Transition Rules.

          Important
          Important

          The rule expressions in this topic use the namespace vlocity_ins for custom objects and fields. If your org has a different namespace, vlocity_cmt or vlocity_ps, use that instead.

          The following table lists examples of ways to reference base object and linked object fields in State Transition Rules.

          Referenced Fields

          Example

          Base object field

          vlocity_ins__Application__c.vlocity_ins__Status__c == 'New'
          

          Base object direct lookup of linked object field

          vlocity_ins__Application__c.vlocity_ins__PrimaryContactId__r.Name == 'Jane'
          

          Linked object field with no base object lookup

          ISNOTBLANK(FILTER(LIST(vlocity_ins__ProviderEducation__c), 'Name = "High School"'))
          

          Linked object field with no base object lookup, but linked object lookup

          ISNOTBLANK(FILTER(LIST(vlocity_ins__ProviderEducation__c), 'vlocity_ins__ContactId__r.Name = "Jane"'))
          

          Combination of base object field and linked object field with no base object lookup

          vlocity_ins__Application__c.vlocity_ins__Status__c == 'New' AND ISNOTBLANK(vlocity_ins__ProviderContactLicense__c)
          

          Combination of base object field, direct lookup, linked object field, and linked object lookup

          vlocity_ins__Application__c.vlocity_ins__Status__c == 'New' AND vlocity_ins__Application__c.vlocity_ins__PrimaryContactId__r.Name == 'Jane' AND ISNOTBLANK(FILTER(LIST(vlocity_ins__ProviderEducation__c), 'Name = "High School"')) AND ISNOTBLANK(FILTER(LIST(vlocity_ins__ProviderEducation__c), 'vlocity_ins__ContactId__r.Name = "Jane"'))
          
           
          Loading
          Salesforce Help | Article