Step 1
Go to the Azure portal and create a new resource, a logic app.
Step 2
Give a name to the logic app, select the subscription, create a new resource group, choose location and keep the log analytics off. Click on create.
Step 3
Once it gets created, go to the Logic App resource and select the Twitter trigger.
Step 4
Click on Sign in.
Step 5
Once you are signed in, it will look something like this.
Step 6
Select the search text as #Azure or whatever topic you want to receive tweets from. Set the interval time of 5 minutes. So after every 5 minutes, it is going to check the tweets with #Azure or whatever hashtag/text that you have selected. Then click on next step.
Step 7
Click on "Add an action".
Step 8
Search for Gmail and select it.
Step 9
You will be able to see multiple actions. Out of them, select
Send Email. It will prompt you to sign in.
Step 10
Fill out the necessary fields. In the body section, we are going to display the dynamic data, that is the tweet text and who it is tweeted by.
Step 11
Click on save. So, now we have a basic workflow connecting two different SaaS applications together.
Step 12
So far in the demo that I have performed, it has fetched 11 tweets, hence making 11 successful runs.
Step 13
Here is a glimpse of successful runs.
Step 14
In the resource group, you will find the logic app and Gmail and Twitter API connections as resources themselves. By clicking on Twitter/Gmail, you can edit the API connection.
Step 15
You can edit the API connection from here if you want to change the authorization.
Step 16
Check your email and you will find the results mailed to your email ID. You can delete the resource group after successful completion of the demo or else, you will keep receiving emails until and unless you either delete the resources/resource group or your subscription runs out of credits.
So, this is how you can connect two different Software as a Service application with the help of Microsoft Azure Logic Apps.