Connect Box To OneDrive Using Azure Logic Apps

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,

Here, we will see how to Connect Box to OneDrive using Azure Logic App automatically.

Box

The box is a cloud computing business which provides file-sharing, collaborating and other tools for working with files that are uploaded to its servers. Users can determine how their content can be shared with other users. Users may invite others to view and/or edit an account's shared files, upload documents and photos to a shared files folder (and thus share those documents outside Box), and give other users rights to view shared files. Login here.

OneDrive

OneDrive is a file-hosting service operated by Microsoft as part of its suite of online services. It allows the users to store files as well as other personal data like Windows Settings or BitLocker recovery keys in the cloud. Files can be synced to a PC and accessed from a web browser or a mobile device, as well as shared publicly or with specific people. Log into OneDrive from here.

How to create a Logic App to Connect Box to OneDrive

Here, we need to connect Box to OneDrive.

Prerequisites

  • Microsoft Azure Account
  • Box Account.
  • Microsoft OneDrive Account

Follow the below 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".

Connect Box to OneDrive using Azure Logic Apps

Step 2

Enter the name you want to assign to the logic. Select the subscription and resource group where you organize related resources and location where your logic app is stored. Then, click on "Create".

Connect Box to OneDrive using Azure Logic Apps

Here is the dashboard. Click on "Logic App Designer".

Connect Box to OneDrive using Azure Logic Apps

Step 3

Now, click on the Blank Logic App.

Connect Box to OneDrive using Azure Logic Apps

Step 4

  • Sign in Box Account. https://www.box.com/home

    Connect Box to OneDrive using Azure Logic Apps
  • Create a folder in Box

    Connect Box to OneDrive using Azure Logic Apps
     
  • The folder is created.
Connect Box to OneDrive using Azure Logic Apps

Step 5

Configure the data by signing in to the Box and One Drive.

  • Search for Box in the search bar.

    Connect Box to OneDrive using Azure Logic Apps
  • Choose the Triggers.

    Connect Box to OneDrive using Azure Logic Apps
  • Sign in to Box.

    Connect Box to OneDrive using Azure Logic Apps
  • We need to give permission to access our accounts

    Connect Box to OneDrive using Azure Logic Apps
     
  • Next, we give grant access to Box

    Connect Box to OneDrive using Azure Logic Apps
  • Next, we choose the Folder Id. Then, set the time interval and frequency for checking the workflow as one minute.

    Connect Box to OneDrive using Azure Logic Apps

Step 6

  • Next, search for OneDrive.
Connect Box to OneDrive using Azure Logic Apps
  • Then, choose the action for the workflow.
Connect Box to OneDrive using Azure Logic Apps
  • Next, Choose Folder path, File Name, and File Content for saving the files from Box.
Connect Box to OneDrive using Azure Logic Apps
  • Then, choose the fields you want.
Connect Box to OneDrive using Azure Logic Apps
  • The final workflow will be like this.
Connect Box to OneDrive using Azure Logic Apps

Step 6

Now, let us save and run the workflow.

Connect Box to OneDrive using Azure Logic Apps

Output

Upload the Files in Box.

Connect Box to OneDrive using Azure Logic Apps

File Uploaded.

Connect Box to OneDrive using Azure Logic Apps

Now, the File is copied into the OneDrive.

Connect Box to OneDrive using Azure Logic Apps

Summary

I hope you understood how to connect the Box to OneDrive for saving the file automatically and how to run it. Stay tuned for more Logic App articles.