---
sourceDocument: Brazil Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the For Each component

# Use the For Each component {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Traverse each item in a collection in the order of first to last using the For Each
component in the RPA Desktop Design Studio. The collection can be an array, list, or
a table.

## Before you begin

Role required: none

## About this task

You can configure the properties for the For Each component.{#use-loops-foreach__table_esv_znp_xtb__entry__2}

| Property | Description |
|-|-|
| Delay After Execution | The number of seconds to pause after running. |
| Delay Before Execution | The number of seconds to pause before running. |
| Delay for each execution (Seconds) | Specified delay before an item in the object, array, or a list is executed. |
| Enable Timeout | Option to set a timeout value. |
| Timeout | Number of seconds that the operation ends after if not completed. To apply this value, you must set the Enable Timeout property. |
[Table 1. Properties of the For Each component]

{#use-loops-foreach__table_esv_znp_xtb}

## Procedure

1. In the Toolbox pane, navigate to LoopsFor Each.
2. Drag the For Each component to the Design surface.
3. To configure the input fields, see [Configure port properties](https://www.servicenow.com/docs/ED3jBpqtlHH8p~yFFmyRBQ "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
4. Connect the data and control ports of the For Each component to the corresponding ports of the other components as described in the following table.  
   {#use-loops-foreach__table_jnw_jn1_krb__entry__6}

   | Port type | Port name | Data type | Purpose of connection | Default value | Mandatory? |
   |-|-|-|-|-|-|
   | Data In | Collection | Object | Takes the collection as an input. | No default value | Yes |
   | Data Out | Current Object | Object | Returns each item from the collection. | Not applicable | Not applicable |
   [ ]

   {#use-loops-foreach__table_jnw_jn1_krb}
5. **Optional:** To test the component, under the DESIGN tab, click Run.

## For Each loop component {#use-loops-foreach__example_uzv_d5d_ggc}

Use a For Each loop component to automate user account provisioning. In this scenario, a robot reads an Excel file containing user account requests. Each row in the file includes information such as user name, email, role, and
department. The robot processes each request by creating the user account, assigning the appropriate role, and sending a notification to the department manager.

1. Use the Data Table connector to import rows from the Excel file.
2. Drag a For Each component onto the design surface to iterate over the list of request records.
3. Inside the loop:
   * Extract fields from the current record.
   * Navigate to the user management interface and fill in the details.
   * Submit the form to create the user account.
   * Send an email notification to the relevant department manager with the account details.
   {#use-loops-foreach__ul_gzm_svd_ggc}

*[\>]: and then


