Logic Apps

Working with Logic Apps Dropbox and SMTP Connector

Logic app is a codeless integration service for communication between multiple platforms and services. It has an extensive set of connectors for communication purposes. In this article, we are just going to discuss two of them, Dropbox and SMTP connectors.

Logic apps can perform various actions on Dropbox-like, get all lists of files, copying files and deleting files, etc. Users can instantiate the logic app if any new file got created or an existing file is modified in Logic App. Here we are going to send an email to the Gmail account using SMTP if any new file gets generated in Dropbox.

Get Your Free Beginner’s Logic Apps Training Guide 

Prerequisites:

  • Azure subscription, if you don’t have a subscription, you can start with a free subscription here.
  • A Gmail account.
  • Dropbox account.

Create Logic App:

  1. Sign in to Azure Portal
  2. From the azure menu click/tap on New > Enterprise Integration > Logic App.

  1. Enter the logic app name, select your subscription and add a new or existing resource group.
  2. Click/tap on Create button.

  1. You can see a lot of already created Logic Apps but here we are going to start with a blank Logic App. Click on a blank logic app.
  2. Type Dropbox as a filter in logic app designer. And select Dropbox – When a file is created from the trigger section.

  1. If you haven’t created any Dropbox connection in any existing Logic App, you need to click login first, provide your credentials and authorize the Logic app to use your Dropbox.
  2. Once the Dropbox connection has been created. Tab/click on the folder icon located at the top right side of the Folder text box. It will show all folders structure from Dropbox.
  3. Browser to the folder where you want to check the file.
  4. The set time interval for recurrence, here logic app will check files after every five minutes.

  1. At the next step, click on Add an action.
  2. Type SMTP and select SMTP – Send Email from Actions.
  3. Create a new connection for SMTP if you don’t have any existing connection, and provide information like below.

  1. Connection Name can be any name. For a Gmail account, you need to use “smtp.gmail.com”, and provide your email credentials.
  2. When connection establishes, Provide email parameters in respective textboxes. As mentioned in the screenshot below. In “From” and “To” textboxes you need to use email addresses.

  1. Save your work and run the logic app.
  2. Drop any file into a folder in Dropbox and check your Gmail account. You will receive an email with the attached file.

Author

Hassan Askari