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,
Prerequisites
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".
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Step 2
Enter the name you want to assign to the logic. Select the subscription and resource group where you organize the related resources and location where your logic app is stored. Then, click on "Create".
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Here is the dashboard. Click "Logic App Designer".
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Step 3 - Choosing the template
Now, choose the template "Blank Logic App".
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Step 4 - Mapping the Twitter account
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- We give permission to access our accounts.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Next, set the Specific Keyword ( Eg. #cognitiveinlogicapp) which you want to store that specific tweet to Blob. And then, give the time interval and frequency for checking the workflow as three seconds.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Step 5
Configure the Text Analytics for detecting the Language of the tweet.
- Search for Azure Cognitive service for Language.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
We will get
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- After that, Configure with Azure Cognitive service for Language – Account Key & URL.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Configure the conditions like document id as Tweet id and document text as Tweet text.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Step 6 - Configure the Condition.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Choose a value as name and its equal to English
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Next, click on add an action in True
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Add the folder path as twitterinenglish
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Then, choose blob name and blob content
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Now, configure False condition
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Choose Azure blob storage
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- Mapping the folder to twitter in other language container
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Now, the Condition will look like this,
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
- The final workflow will be like this.
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Now, let us save and run the workflow.
Output
Run the Logic App
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Its successfully run
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Expand the Detect Language
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Expand the condition block
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Just refresh the blob storage to see the result. Now, copy the link
![Split and Store the different language tweets in blob storage Using Azure Logic App]()
Summary
I hope you understood how to split and store the different language tweets in blob storage Using Azure Logic App. Stay tuned for more Logic App articles.