Introduction
In this article, you will see how to copy files from SharePoint to Azure Blob storage using Microsoft Flow. Whenever a file is added to a SharePoint document library folder, the Flow copies the file to an Azure blob storage.
Prerequisites
Create an Azure storage account
Create a blob container
Steps involved -
Navigate to the Flow site.
On the top navigation, click My flows.
Click "Create" from templates.
Type “Azure blob” in the search box, select "Copy files from a SharePoint folder to an Azure Blob" folder.
Sign up for your SharePoint site by passing the credentials.
Click "Create" to connect to the Azure Blob Storage.
Enter the following details and click "Create".
Connection Name –a user-friendly name for the connection
Azure Storage Account Name & Azure Storage Account Access Key – Copied from Azure Storage Account settings page as shown in the below screenshot.
When a file is created trigger – Select the site address and folder Id from where the documents have to be copied.
Create file action – Select the Folder path where the document to be stored and the default values for the parameters can be edited by clicking "Edit".
Click "Save" once the changes are completed.
Click "Test" to test the workflow.
Navigate to the SharePoint Document library and upload the document.
Flow ran successfully as shown below.
Navigate to the Azure Blob folder to verify the copied document.
Summary
Thus, in this article, you saw how to copy files from SharePoint to an Azure Blob Storage using Microsoft Flow.
Comments