Create an Azure Logic App and Test It Using Postman

Introduction 

 
The Azure Logic app basically contains a trigger and an action. If a specified trigger is triggered, then a mentioned action will be performed.
 

Steps 

 
To create a Logic App you have to create Azure Account on here.
 
Sign in to the portal and select Logic Apps
 
 
Create An Azure Logic App And Test It Using Postman
 
It will redirect you to the below screen.
 
 
Create An Azure Logic App And Test It Using Postman
Click on the Create Logic App
 
Create An Azure Logic App And Test It Using Postman
 
Fill the details such as Subscription, Resource Group (Click on Create New to add a new one), Specify the logic app name, location and then click on Review + create
 
On the next screen, click Create. Then the app will be created. Now click on the Blank Logic App button.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then, the Editor screen will open like this:
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then type a Request in the trigger text box and add a request trigger with action “When an HTTP request is received”.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then the HTTP Request trigger will be added to the designer. 
 
Set Method as “GET” and check the “Relative Path” checkbox.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then type {Age} in the text box.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Click on the Next Step button and add Control trigger with action Condition.
 
Then type the below string in the text box
 
int(triggerOutputs()['relativePathParameters']['Age']) 
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then, select is greater than or… condition from the list.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Set the value as 65.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then click on “Add an action” in if it's the true section, and select the “Response” action.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then give the body the text, “Your age is greater than 65”
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Then add the same action for if false section and give body “Your age is less than 65”
 
Now click on the Save button to the same logic app on Azure. Then click on the Edit button to edit the logic app in Edit mode. Then copy auto-the generated HTTP to get your URL.
 
 
Create An Azure Logic App And Test It Using Postman 
 
 
Then paste this URL in Postman and replace {Age} with the value “30” in the URL.
 
 
Create An Azure Logic App And Test It Using Postman
 
 
Select the method “GET” and click on the Send button to send a request.
 
For this request, you will get the below output. 
 
 
Create An Azure Logic App And Test It Using Postman
 
 
If your age is greater than 65, then you will get the below output.
 
 
Create An Azure Logic App And Test It Using Postman