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 / Parse headers returned...
Power Automate
Unanswered

Parse headers returned from http action?

(1) ShareShare
ReportReport
Posted on by 6

I have an HTTP request which processes just fine and gets back a body, headers, and response code value... however I would like to get the value of a specific header key (the value in the "location" key in my case) for use in a subsequent flow action... 

 

Is this possible? I see the Headers response object, but i have no idea how to parse that to just get the value i am looking for... 

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @KarmaPoliceT2,

     

    Could you please share a screenshot of your flow's configuration?

    Further, could you please share a bit more about your Headers response object?

    I have made a test on my side and the flow works well. Please take a try with the following workaround:

     

    14.JPG

    The flow works successfully as below:

     15.JPG

    In your scenario, please type the following expression:

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

     

    Best regards,

    Kris 

  • KarmaPoliceT2 Profile Picture
    6 on at

    This worked wonderfully... i wasn't aware of the outputs expression's '?' variable parsing capabilities... thanks!

  • Racca Profile Picture
    4 on at

    Is it possibile get the "Request header"?
    This is the response header.
    Thanks

  • Community Power Platform Member Profile Picture
    on at

    InvalidTemplate. Unable to process template language expressions in action 'Initialize_variable_2' inputs at line '1' and column '2200': 'The template language expression 'outputs('HTTP')['headers']['location']' cannot be evaluated because property 'location' doesn't exist, available properties are 'Pragma, Cache-Control, Date, Set-Cookie, X-Frame-Options, Content-Length, Content-Type, Expires'. Please see https://aka.ms/logicexpressions for usage details.'.

     

    However when i passed the outputs('HTTP')['headers']['X-Frame-Options']. I am getting the proper result.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard