Skip to content

How to Automatically Share OneDrive Files on Slack Channel

In this section, we will discuss how you can integrate OneDrive with Slack, following which, each time you upload a new file in OneDrive, it will automatically be shared with your team members on Slack.
This automation requires a one-time setup, for which we will use Pabbly Connect.
We will first link OneDrive with Pabbly Connect to capture the files, then link Pabbly Connect with Slack and share the file on the selected Slack channel.

Steps to Automatically Share OneDrive Files on Slack Channel

1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Establish a Connection between OneDrive and Pabbly Connect
3. Setup Slack as the Action App to Share Data

Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow

A. Sign In / Sign Up

To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.

Click on the Pabbly Connect ‘Access Now’ button

B. Create Workflow

To create a new workflow, click the ‘Create Workflow’ button.

Name your workflow, and click on ‘Create’.

Step 2:- Establish a Connection between OneDrive and Pabbly Connect

We will now look at the steps through which we will establish a link between OneDrive and Pabbly Connect. This will help us to fetch the files from OneDrive.

A. Trigger App

Trigger allows us to choose the application that will receive the data for Pabbly Connect. In our case, it would be OneDrive

Choose ‘Microsoft OneDrive’ as the Trigger App, select ‘New File’ as an Action Event, and click on ‘Connect’.

B. Connect Microsoft OneDrive Account

To connect with your OneDrive account, select ‘Add New Connection’, and click on ‘Connect With Microsoft OneDrive’.

Set the Folder Path to specify the folder from where you want to capture the files, select ‘New File Created’ as the Event Type, and click on ‘Save & Send Test Request’.

The moment you click on Save & Send Test Request, Pabbly Connect will capture the data of the latest file uploaded to your OneDrive account.

We have established a link between OneDrive and Pabbly Connect. Pabbly Connect will now automatically capture the files uploaded to OneDrive.

Step 3:- Setup Slack as the Action App to Share Data

Action allows us to choose the application that will get executed by the workflow trigger.
We essentially want to share the captured files over a Slack channel. Therefore, Slack will be our Action App.

A. Action App

Choose ‘Slack’ as your Action App, select ‘Send Channel Message’ as an Action Event, and click on ‘Connect’.

B. Connect with Slack Account

To connect with your Slack account, select ‘Add New Connection’ and click on ‘Connect With Slack’.

Enter your Token Type and click on ‘Save’. Also, grant the authorization.

C. Compose Message

Now that you have connected your Slack account, all you need is to map the necessary details from the step above. Mapping ensures our data remains dynamic and changes as per the received responses.

Select the Channel at which you want to send the message.

Compose your message by mapping data from the step above.

Similarly, map the other fields, leaving the unnecessary ones empty, and click on ‘Save & Send Test Request’.

The moment you click on Save & Send Test Request, the link to the file will automatically be shared with team members on Slack.

Our automation is complete. We have successfully integrated OneDrive with Slack. Each time you upload a new file on OneDrive, it will now automatically be shared with team members on Slack Channel.

You can copy this entire workflow by clicking this link.

Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum