Azure Logic Apps
Logic App is a cloud-based service that allows us to react to an event in one service (such as SharePoint online) and do something with the data from that event into another service (such as Twitter). It makes it practical and simple for business processes. The users build workflows that automatically perform some business tasks and processes across applications and services. We can connect our business-critical apps and services with Azure Logic Apps, automating our workflows without writing a single line of code.
Before reading this article, please go through some important article links mentioned below.
Prerequisites
Here, we are going to see how to connect blob storage and oneDrive with approval-based automated workflow using Azure Logic App
Steps to build a Workflow using a template
Step 1
- Log into https://portal.azure.com/.
- In the dashboard, choose to create a resource and click on Integration. Now, select "Logic App".
![Create a resource]()
Step 2
- Enter the name you want to assign to the logic. Select the subscription and resource group where you organize the related resources and location where your logic app is stored. Then, click on "Create".
![Logic app]()
- Here is the dashboard. Click "Logic App Designer".
![Logic app designer]()
Step 3
Now, click on the Blank Logic App.
![Blank logic app]()
Step 4
Configure the blob Storage.
- Search for blob storage in the search bar.
![Azure blob storage]()
- Choose the Triggers as When a blob is added or modified.
![]()
Step 5
Configure Blob for get blob content.
- Search for Azure Blob Storage.
![Azure blob storage]()
- Choose the action as Get blob content
![Get blob content]()
- Mapping Storage account, Blob.
![Mapping storage account]()
Step 7
Initializes the variable.
![Initialize variable]()
Step 8
Configure Control for checking the condition.
- Search for Control operation
![Control operation]()
- Choose condition as actions
![Actions condition]()
- Choose Selected options is equal to Approve
![Condition]()
True
- Then, if true, choose an operation such as Blob Storage and choose the action as create blob. And map the folder as outlookdocs.
The final workflow will be like this.
![Create blob]()
False
- Then, if true, choose an operation such as Blob Storage and choose the action as create blob. And map the folder as outlookimage
![Create blob]()
Final work flow
![Final work flow]()
Now, let us save and run the workflow.
Output
Run the Logic App.
![Run trigger]()
Its successfully run
![Successfully run]()
Upload blob in storage.
![Upload blob]()
![March month sales]()
Finally, it successfully runs and save the file into outlookdocs container in blob storage.
![Outlook docs]()
Summary
I hope you understood how to connect blob storage and OneDrive with approval-based automated workflow using Azure Logic App. Stay tuned for more Logic App articles.