Skip to main content
Community site session details

Community site session details

Session Id : g8Png7u4ByDelDf7QpxS/R
Power Automate - Using Flows
Unanswered

HTTP GET - Flow returns 301 error - Same attempt via Postman returns 200-OK?

Like (0) ShareShare
ReportReport
Posted on 17 Jun 2020 08:54:26 by 12

Hi,

 

I am building a flow to automate responses to alerts from Microsoft Cloud App Security. As part of the flow I need to perform a HTTP GET request for an alert. This then generates a response in JSON I can then parse to retrieve the information I require.

 

I have crafted the flow but am receiving an error when using the HTTP GET module in flow.

 

The request essentially sends a HTTP GET request to a dynamic URI and sends a header value that contains the relevant API token.

 

 

Capture.PNG

 

I have performed the operation in postman with a header key of "Authorization" and value of "token <token value>" and this works

 

I have configured the same in the HTTP module in flow which fails every test - if I review the results of the failure I can see the URI is correct (as if I cut and paste the URI used into postman and use it, it works). I cant see the token being sent as the result is sanitised in the flow output, however the header value in the HTTP module is identical (and also works if cut and pasted into postman).

 

Is there any further debugging I can do to get to the bottom of this?

 

  • MJain Profile Picture
    2,450 on 18 Jun 2020 at 14:22:03
  • cdf_pjr Profile Picture
    12 on 18 Jun 2020 at 13:19:32
    Re: HTTP GET - Flow returns 301 error - Same attempt via Postman returns 200-OK?

    If I use a bearer token in Postman it fails?

     

    I have seen token used exactly as I am attempting in this video https://youtu.be/-vZucJr6Vck?t=2498 which is what I am trying to replicate.

  • MJain Profile Picture
    2,450 on 18 Jun 2020 at 13:02:47
    Re: HTTP GET - Flow returns 301 error - Same attempt via Postman returns 200-OK?

    Hi @cdf_pjr ,

     

    Authorization token should be in format : Bearer {0} . have you tried doing that ?

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow
Loading complete