Announcements
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
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.
Is it possibile get the "Request header"?
This is the response header.
Thanks
This worked wonderfully... i wasn't aware of the outputs expression's '?' variable parsing capabilities... thanks!
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:
The flow works successfully as below:
In your scenario, please type the following expression:
outputs('HTTP')['headers']?['location']
Best regards,
Kris
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.