Loading
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
          Multiple Conditions vs. Multiple Rules

          Multiple Conditions vs. Multiple Rules

          A state transition often depends on multiple conditions. Whether you put conditions in the same rule or different rules depends on whether different conditions must result in different actions.

          For example, the Enrolled to Completed and Incomplete to Completed transitions in the Report Card State Model occur only if both of these conditions are true:

          • The Grade__c field of the Report_Card__c object has a value that is not I for Incomplete.

          • The IsActive__c field of the related Contact object has a value of true.

          You can configure this requirement in two ways:

          • Include both conditions in the same rule with an "and" operator, &&, linking them.

          • Include each condition in a different rule, and set the State Transition Completion Criteria value in the State Transition to All True.

          In the Report Card State Model, both conditions can be in the same rule because the Enrolled to Completed and Incomplete to Completed transitions don't invoke actions. (Arrival at the Incomplete state does invoke an action.)

          However, the Completed to Passed transition in the Report Card State Model has four separate rules, any of which can be true for the transition to occur:

          • The Grade__c field of the Report_Card__c object has a value of A.

          • The Grade__c field of the Report_Card__c object has a value of B.

          • The Grade__c field of the Report_Card__c object has a value of C.

          • The Grade__c field of the Report_Card__c object has a value of D.

          These conditions must be in separate rules because each invokes a different action. (The Email Template for each grade is different because the Grade__c value can't be passed in.)

          To change the rule invocation order, move the rules in the list by dragging and dropping. All rules are evaluated regardless of order.

           
          Loading
          Salesforce Help | Article