web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting a key-value pa...
Power Automate
Answered

Getting a key-value pair from an HTTP flow module response

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an HTTP flow module which returns a redirect message, and I would like to get a key-value pair from the response.  I tried making the following expression, but it gives an error:

 

outputs('HTTP')['location']

The location is stored in a key-value pair in the response's header.  How would I write an expression to retrieve that?

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    @sbeyer1227 

     

    Share screenshot of your http response received within Flow

     

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @sbeyer1227 ,

     

    If HTTP is configured as a trigger, then you could use the following expression to get the location:

    triggerOutputs()['headers']['location']

    If HTTP is configured as an action, then you could use the following expression to get the location:

    outputs('HTTP')['headers']['location']

    Hope it helps.

     

    Best Regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard