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 / Passing Cookies betwee...
Power Automate
Unanswered

Passing Cookies between HTTP

(0) ShareShare
ReportReport
Posted on by

This has been asked previously but all posts are 4-5 years old - I'm REALLY hoping this is a possible now.

I'm trying to pass cookies returned on one HTTP action into another - is this possible and what would that process look like? 

 

The idea is - the first POST HTTP is creating an Authorization token - this needs passed as cookies to the second GET HTTP which will then pull the data I actually need.

I have the integration working perfectly in Postman. I tried to import it and it failed so I'm rebuilding it with HTTP actions.

 


Any help or guidance would be DEEPLY appreciated!

 

 

tsPDI_0-1655207071600.png

 

Categories:
I have the same question (0)
  • David59740 Profile Picture
    49 on at

    I'm having the same issue with staying logged in for the HTTP GET request and have been researching a lot. Have you tried passing your unique session ID into the 'Cookie' section of your second HTTP action (I believe it needs to be passed in a form such as 'JSESSIONID=dhjasdhkasdhjaskjhdaskh.app-02'). Also, if your token expires you'll have to store it in a variable dynamically and input it wherever your API documentation says is valid to do so. If you figure this out please keep me updated, I am struggling heavily with this as well; there's really no good documentation on this that I have found.

  • Community Power Platform Member Profile Picture
    on at

    How exactly would I pass the Cookie into the next HTTP(Or Extract it as a variable)? That's where I'm struggling - I "think" I need to use Parse JSON but I don't know how to direct it at the cookie returned from the initial HTTP request

  • David59740 Profile Picture
    49 on at

    You can either use Parse JSON or you can use multiple split methods if you want a specific value from the set-cookie.

     

    outputs('HTTP')['Headers']['Set-Cookie'] will bring back your entire set cookie.

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