Loading
Salesforce now sends email only from verified domains. Read More
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
          Define Execution Logic Using Conditional Blocks (Managed Package)

          Define Execution Logic Using Conditional Blocks (Managed Package)

          For the managed package runtime, a Conditional Block executes in its entirety if an expression is true, executes one of a set of mutually exclusive conditions defined in the steps it contains, or both.

          Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

          To control whether an individual action executes, you set its Execution Conditional Formula to an expression that can be evaluated as True or False. If the expression evaluates to True at run time, the step is executed.

          To conditionalize the execution of a group of actions, place them inside any block and set the Execution Conditional Formula of the block. If the formula evaluates to True at run time, the actions in the block are executed. If an action in a block has its own Execution Conditional Formula, it is executed only if its formula evaluates to True at run time.

          The Conditional Block is the simplest block type. Unless you check Is If Else Block, it has no inner logic. It either executes or it doesn't according to its Execution Conditional Formula.

          How to Compose IF - ELSEIF - ELSE Logic

          To define a set of mutually exclusive conditions, use a Conditional Block and check Is If Else Block. For each action in the block, specify a unique condition in its Execution Conditional Formula. The sequence of actions is important: When the block is executed, the first action that has an Execution Conditional Formula that evaluates to True is executed, then execution resumes with the step following the Conditional Block. No other actions in the block execute. To configure a step that is executed if none of the preceding steps execute, leave the Execution Conditional Formula of the last step blank.

          The following figure illustrates the use of this logic to perform a different action, depending on the type of device. The Conditional Block itself executes only when the device being processed comes from Apple, and the block contains actions that execute only for a specific type of device.

          The ProductIsMacintosh Conditional Block has an Execution Conditional Formula of deviceMaker==Apple and its Is If Else Block box is checked. It subcomponents are isIMac, isIPad, isIPhone, and isOther. The Execution Conditional Formula values of the subcomponents are deviceType==iMac, deviceType==iPad, deviceType==iPhone, and blank.

          To execute multiple actions for a condition, you can nest Conditional Blocks.

          • Conditional Block Properties (Managed Package)
            For the managed package runtime, these properties are unique to or function in a unique manner in Conditional Blocks. A Conditional Block executes in its entirety if an expression is true, executes one of a set of mutually exclusive conditions defined in the steps it contains, or both.
          • Create a Conditional Block Example with If-Elseif-Else Logic (Managed Package)
            For the managed package runtime, based on a price and a state code, an Integration Procedure calculates the sales tax and reports the total price. For brevity, only four state codes are included: WA, OR, CA, and NV.
           
          Loading
          Salesforce Help | Article