Skip to main content

 

Cisco Meraki Documentation

Logic Activities

Logic Activities

Automation includes logic activities to expand the capabilities of your workflows. Logic activities allow you to perform actions such as creating loops, setting conditions for branching, and choosing specific start and endpoints in a workflow.

Variable size is limited to 1 MB. As of October 4, 2023, the size of the Large String workflow variable type is limited to 10 MB.

The automation logic is organized into the following categories of activities:

Loops

  • For EachUse the For Each activity to create a loop that runs once for each item in a source array. For Each loops are one of the two types of loops available in Automation. This type of loop consumes an array of data and runs the content of the loop a single time for each item in the array. If you want to loop for an arbitrary number of times or while a condition is true, see the While Loop Help topic. For more information, see For Each and While Loops
  • While LoopUse the While Loop activity to create a loop that runs based on the conditions you configure. A While Loop is one of the two types of loops available in Automation. This type of loop will continue running as long as its control condition is true. For more information, see For Each and While Loops.
  • BreakUse the Break activity to stop a loop and proceed to the next activity. This activity can only be used within a loop to perform loop control.

    You can skip the rest of a single iteration of a loop or continue on failure using the Continue activity. You must first configure either a For Each Loop or a While Loop and then drag the Break activity into the loop. There are no additional properties to configure.

  • ContinueUse the Continue activity to continue running a workflow after a condition branch in a loop fails. This activity can only be used within a loop and allows the workflow to continue running after a failure. An example use case would be for a loop that runs the maximum number of 500 times. When the loop attempts to run again, it will fail. Add a Continue activity to continue to the next activity in the workflow. You can also use the Continue activity to skip a single iteration of a loop.

Conditions

  • Condition BlockUse the Condition Block activity to specify multiple paths for your workflow based on a series of one or more conditions.  These are the same as a traditional if/then/else type statements in scripting. For more information, see the Conditional Block section.

  • Start PointUse the Start Point activity to define a non-default starting point for your workflow. By default, when you run a workflow, it starts at the top and works its way down. You can place Start Point activities throughout the workflow, and when you run the workflow, you can choose which Start Point you want to use.

      Drag and drop the Start Point activity at any point within the workflow where you want to start.

      Note: You cannot add a start point within a logic block (Condition Block, Parallel Block, For Each Loop, While Loop).

  • CompletedUse the Completed activity to stop a workflow and mark it as completed. You can insert a Completed activity anywhere in a workflow. Complete the following properties to use this activity:

    • Completed: Specify the following information or click the Variable Reference icon to choose a variable:
      • Completion Type - Click the drop-down menu and choose the type of completion:
        • Succeeded - Marks the workflow as successfully completed.
        • Failed - Marks the workflow as failed.
      • Result Message - Enter the message to display on workflow completion.

Other

  • GroupUse the Group activity to create containers within your workflow for easier readability. Drag the Group activity onto the workflow canvas, and then drag and drop the activities you want inside the group container.
  • Parallel BlockUse the Parallel Block activity to create branches in your workflow that run at the same time (parallel). Drag the Parallel Block activity onto the canvas, and then drag and drop the activities you want inside each of the Parallel Branch containers.​​​​​​​
  • Was this article helpful?