Build Logic Apps in less than 5 minutes to manage enterprise integration scenarios!

Christhini
4 min readMay 7, 2020

--

Azure Logic Apps are Microsoft Azure’s integration and Workflow offering in the cloud. Today, with business moving towards digitization, logic apps help you connect with cutting-edge technology systems. Plus, you only pay for what you use. In certain scenarios, you won’t have to write code. Logic apps do that magic for you. It’s interesting right!

In this blog, I will explain the functionality of logic apps with a simple example.

Study of Logic App:

Usually, Logic app comprises of two components:

Trigger: An event such as a file being created on a share.

For example, when an email received trigger lets your logic app check for a new email from any mail provider that’s supported by Logic Apps.

Action: Corresponding action in response to the trigger.

To achieve this, Logic apps come into the concept of Connectors. The power of connectors is that they can be used as a trigger as well as an action.

Creating A Logic App:

Azure Logic App begins with trigger and after firing can begin with actions and conditions. Let’s get started with the example.

Example:

Whenever a user uploads a file in one drive. The user will be notified via email. I hope this example will give you a clear picture of how logic apps exactly work.

Log in to the Azure portal https://portal.azure.com/

In the top bar type Logic app custom connector. Select Create logic apps custom connector.

Azure app services require resources groups to be specified. A resource group is the basic logical container for any deployment in the new Azure portal deployment model (ARM). You can specify an existing resource group or new resource group. Specify a location for the resource group. Click on create. Azure will now create a Logic App.

Once done, select review + create.

Using the Logic App Designer:

Once created, on the left pane, select deployment tools. This will bring up the Logic App Designer. Select Blank logic app.

In the search bar, type one drive. A list of connectors appears in the drop-down. Select one drive (not for business). You will be now to ask to login to access the one drive. Please login to the one drive.

Once you have done this another screen will appear asking you which trigger you want to select.

Select One drive — when a file is created.

This option will bring up the new screen.

The next part of the workflow is to send a notification e-mail using your personal g-mail. Click on New step. Type Send email in the search bar of the new step. Select g-mail. You will be asked to sign in to give authorization to your Logic app for your g-mail account.

Here we will use the “File name” property. In the Subject field enter the text “The file” then select the “File Name” metadata from the “Dynamic content” tab of the popup window. After selecting the metadata add the rest of the line “was uploaded to your personal folder”.

As well as adding Dynamic content you can use a rich set of Expressions from the “Expression” tab:

You can select from a rich set of expressions that include: String functions, Collection functions, Logical functions, and more.

TEST YOUR WORKFLOW

Testing your workflow. To test simply create a text file in your personal one drive. For this example, I have uploaded an empty text file called sample.txt into the Personal folder. The workflow is configured to check every 2 minutes. You can additionally select the run link at the top of your Designer view. Click on the Run link. This will execute the workflow.

If your workflow is successful then you should receive an e-mail with the subject line:

The file sample.txt was uploaded to your personal folder

As you can see the logic app has inserted the File Name into the subject text.

I hope this article gives you a basic understanding of the logic apps and their functionality.

Thanks for reading! Good luck! Cheers!😄😀

--

--