cs-icon.svg

How Repeat Paths Work?

Repeat Path is a part of setting up the Automations to perform operations on bulk data. You can configure the Repeat Path feature to repeat actions or steps through a specified source or based on the count. It adds efficiency, consistency, and scalability, especially when dealing with large amounts of data or complex processes.

Let’s see how Repeat Path works. Here are a few steps you need to perform to use it in your Automation.

  1. Configure Trigger
  2. Configure Action Step
    • Select Repeat Path
      • Data source
      • Number of times
  1. Configure Trigger

    Triggers are invocation events that happen whenever an event is triggered. Automation Hub provides different triggers to invoke an event based on certain conditions.

    Click-Configure-Trigger

    For example, HTTP Trigger provides a webhook URL to perform HTTP requests. So, when a user makes an HTTP request to the configured webhook URL, the associated action is performed. You can send bulk data to the HTTP webhook URL.

    HTTP-Trigger
  2. Configure Action Step (Repeat Path)

    Configure Action Step executes when the trigger event is fired. For example, when an entry is created/updated/deleted in Contentstack, a Slack message is sent to the channel to notify the team members of the ongoing updates.

    Configure-Action-Step

    Contentstack provides a variety of connectors or third-party applications that can be used based on your requirements. This allows you to connect your Contentstack application to a third-party application by simply authenticating your account.

    Select-Repeat-Path

    Select the Repeat Type for your action step in the Repeat Path configuration. If you want to create multiple entries from an array of data in Contentstack, select the Data source or the Number of times as a count to iterate the loop.

    1. Data source: In the Data source field, select the source in which you are sending bulk data so that the Repeat Path can iterate the action step inside it, till the length of the array.

      Suppose you are fetching your data in the HTTP trigger; you can select output from the previous automation step in this field.
      Repeat-Path-Configurations
    2. Number of times: In the Number of times field, you must enter the count/number to iterate the Repeat Path.
      Number-of-tImes-Repeat-Configuration

      Note: In the Number of times field, you can also select the output from a previous automation step.

    Some points to remember:

    1. The default limit for executing Repeat Path is 100. Although, it can be increased by customizing your plan key. Please contact the support team to customize your plan.
    2. Based on the plan limit, if the repeat count exceeds, the automation fails. You can view the details in the Execution Log section.
  3. 2-1 Configure Action Step

    In the Repeat Path Step section, provide the action which will iterate based on the Repeat Path configuration.

    Repeat-Path-Add-Step

    You can see the status of the Repeat Path in the Execution Log section.

    Execution-Log-Status

    You can view the complete status of each repeat cycle in the log section.

    Click-Execution-Log-Details

    Similarly, you can add multiple steps in the Repeat Path as seen in the screenshot below:

    Add-Multiple-Repeat-Steps
Was this article helpful?
^