For Each Blob in Container

Estimated reading: 2 minutes

The For Each Blob in Container activity iterates through all blobs in a specified Azure Blob Storage container and executes the configured activities for each blob.

Fields in Activity Canvas

Container Name: Specifies the name of the Azure Blob Storage container to process.

For Each: Displays the CurrentItem variable by default. Use this variable in subsequent workflow activities to reference the current blob.

Properties

INPUT

Container: Specifies the Azure Blob Storage container from which the list of blobs is retrieved. This field supports strings and String variables.

MISC

DisplayName: Specifies the display name of the activity. Customize this value to improve workflow readability and troubleshooting.

SkipOnError: Specifies whether workflow execution should continue when the activity encounters an error.
True: The workflow continues execution even if an error occurs.
False: The workflow stops execution when an error occurs.
None: The default value is False.

Version: Displays the current version of the activity.

OUTPUT

Result: Returns a Boolean value indicating the execution status of the activity.
True: The activity executed successfully.
False: The activity failed due to an unexpected error.

Example

The For Each Blob in Container activity can be used to process multiple blobs stored in an Azure Blob Storage container. In this example, the activity retrieves each blob from the container and uses the CurrentItem variable to identify the blob being processed.

Workflow

1. Add an Azure Scope activity to the workflow and provide the required Azure Storage credentials.
2. Add the For Each Blob in Container activity inside the Azure Scope.
3. Specify the Azure Blob Storage container in the Container field.
4. Keep the default CurrentItem variable in the For Each field.
5. Add the Download File activity inside the For Each Blob in Container activity to download each blob.
6. Use CurrentItem in the Download File activity to refer to the blob currently being processed.
7. Specify the local path where the blob needs to be downloaded.
8. Run the workflow.

The activity retrieves each blob from the specified container and uses the Download File activity to download the blobs sequentially to the configured local location.

Share this Doc

For Each Blob in Container

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online