Sunday 18 February 2018

Logic App | Integrating with Azure Function


In this article, I will integrate Azure Generic Webhook function with Logic App.

Lets create a generic webhook function and generate a code from json request as shown and use it the function.

This function validates the JSON input and renders response based on the unit provided.

Lets create Logic App and choose a blank template,as shown below.
 Bring in a HTTP Request,
 Using Sample JSON, we can generate the JSON schema and the configure the HTTP verb as post and provide the relative path
Once HTTP request is configured, we can add a new step and then choose an action and configure the Azure Function. Then pass in the HTTP body to function as shown.
Now, we can validate the response using condition and control the flow for true and false path.
Save the logic app and push message using PostMan tool and validate the behavior

No comments:

Post a Comment

Note: only a member of this blog may post a comment.