Control Blocks

Control Blocks determine the execution flow within a Map. Every Map requires a Query Block and a For Each Result Block. Within the For Each Result Block you can use other Control Blocks, such as the If/Else Block and For Each Child Block, to manage specific integration requirements.

Block Properties Tabs For Control Blocks

Every Control Block Properties dialog has a General tab and an Errors And Warnings tab.

The General tab contains a customizable Label field that displays in the Map, as well as a Description field that shows only in the Block Properties dialog and panel. Adding information about your Control Blocks into those fields can make your Map easier to understand for you, as well as for anyone else using the Map.

If there are any errors or warnings for this Block, the Errors and Warnings tab displays the number of errors or warnings in the tab name. See Block And Map Errors And Warnings.

Once you have corrected the errors, select the Validate button to update the Errors and Warnings tab.

Use Control Blocks to create Maps that are very simple or quite complex. For example, a Map can simply copy data from your Microsoft Dynamics CRM system to a SQL database:

Or it can perform more complex logic:

Rules For Control Blocks

Every Map must contain one For Each Result Block.

You can nest Control Blocks as needed; you can, for example, nest an If/Else Block inside a For Each Child Block, a For Each Child Block within an If/Else Block, or an If/Else Block inside another If/Else Block.

Related Topics

Working With Blocks

Continue Block

For Each Child Block

For Each Result Block

If/Else Block

Loop Block

Loop Exit Block

Map Exit Block