#Flow – Advanced options to work with HTTP Actions in #MicrosoftFlow, Headers, Authentication and more!

Hi !

This post is mostly focused for developers. One of the most useful actions we can use on Microsoft Flow is the HTTP Action. There are 3 different types of HTTP Actions

  • HTTP
  • HTTP + Swagger
  • HTTP Webhook

Clipboard02

Today´s post will be focused on the 1st one, in the latest release we can found some very useful new features to work with HTTP Action in Microsoft Flow.

Basic options

As usual, we can start with the basic configuration for an HTTP Action, defining Uri, Body or Method

  • GET
  • PUT
  • POST
  • PATCH
  • DELETE

Clipboard04

I can’t think on a specific scenario, however we can even define different Methods (PUR or GET in example) based on previous conditions of the Flow.

Headers

And this is a cool one, now we can define custom header values for our HTTP Call. If we need to perform a HTTP POST request using JSON content and a specific value for a “validationKey”, we can define something similar to the image.

Clipboard06

And we can even, change the Header editor to work in text mode, which will bring us more power in edition and customization mode.

Clipboard08

Authentication

Another important topic is the authentication options we have for an HTTP Action. Out of the box, the action support the following types:

  • Basic
  • Client Certificate
  • Active Directory OAuth
  • Raw
  • Custom

Clipboard10

The Basic mode will require user and password in the traditional mode. Of course we can get this values from some previous steps on a Flow or use variables in the Flow definition.

Clipboard12

The Client Certificate mode requires the location of an PFX certificate and also the password to use the certificate.

Clipboard14

The Active Directory OAuth mode require all the necessary data to work in a AD environment.

Clipboard16

And finally the Raw mode

Clipboard18

So, IMHO the HTTP Action mode is a very useful one. It allows us to cover and use lot of “non out of the box” services.

Happy Coding ! 😀

Greetings @ Infusion Offices

El Bruno

References

26 comments

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.