---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use a Data Stream action in a flow

# Use a Data Stream
action in a flow {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Data Stream
actions use the For each flow logic option to process stream data in
a flow. For example, suppose that you want to use a Data Stream
action that imports document data from a third-party site. When added to a flow, the action
appears as a For each flow logic block, enabling flow designers to
easily create a record in ServiceNow for each object in the data
stream.

## Before you begin

Data Stream actions require an Integration Hub subscription. For more information, see [Legal schedules - Integration Hub overview](https://www.servicenow.com/content/dam/servicenow-assets/public/en-us/doc-type/legal/snc-addendum-integrationhub.pdf).

Role required: flow_designer or admin.

## Procedure

1. Open the flow you want to add the Data Stream action to.
2. Add the Data Stream action to the flow.  
   The action appears as a For Each flow logic block.

3. Add a child action within the For Each flow logic block.  
   This action runs on each object within the data stream.  
   Note:  
   You cannot add an action that pauses the flow to a Data Stream For Each flow logic block. Data Stream actions require a constant connection to the response stream. For example, you cannot use the Ask for Approval or Wait for Condition actions within Data Stream For Each flow logic. For more information, see [Data Stream action design considerations](https://www.servicenow.com/docs/u9I7gEN1S~SxAolu5Y6zKw "Follow these considerations when creating a Data Stream action and when adding a Data Stream action to a flow to prevent errors and performance issues.").

4. Click Save.  
   Workflow Studio saves a draft of the flow, trigger, and actions.

## What to do next

Test the flow until it is ready to be activated.  
Note:  
The system only triggers active flows.

