Azure : LogicApp If Condition
Here is sample code to send email using Azure function app
API Response
body
{
"ResultCode": "OK",
"Message": "Success",
"Data": "demo@gmail.com"
}
If Condition Step, get http API response result value, Here we are getting above result and want to get value of "ResultCode", and based on we need to perform another action, so we can get it as below,
"expression": {
"and": [
{
"equals": [
"@outputs('HttpStepName')['body']?['ResultCode']",
"OK"
]
}
]
},
Hope this will help you and save your time.
Enjoy !!!
:)
No comments:
Post a Comment