For the managed package runtime, in an Integration Procedure, you can run a group of related steps as a unit inside a block to execute them conditionally, cache them, repeat them for each item in a list, or return an error if they fail.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Integration Procedures provide these block types:
-
Conditional Block — Executes the block if a specified condition is true, or treats the steps within it as a series of mutually exclusive alternatives. This is the most basic block type.
-
Cache Block — Saves the output of the steps within it to a session or org cache for quick retrieval.
-
Loop Block — Repeats the steps within it for each item in an array.
-
Try-Catch Block — Returns specified output or calls an Apex class if a step within it fails.
All blocks have one property in common: Execution Conditional Formula. If this formula evaluates to true or is not defined, the block is executed. If it evaluates to false, the block is skipped.
You can nest blocks within other blocks. For example, you can nest a Loop Block within a Try-Catch Block or a Cache Block. Nested Loop Blocks aren't supported. However, you can call one Integration Procedure with a Loop Block from another.