Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How does power query work with response headers to use Set-Cookies

Hi Team 

 

Does anyone have a fair understanding of how power query works with response headers. I'm trying to get through the cookies process and have been having a difficult time in doing so. No one seems to have done this in past and it is unclear if power query works with cookies. One of the old posts dated back in 2018 mentioned it does not, but I'm trying to figure out if things have changed. 

I'm trying to use set-cookies but not sure how it works. Example code from other language:

 

function(err, res, body){

                                                                console.log("Cookies:---->", JSON.stringify(res.headers["set-cookie"])) // This just a print to see cookies.

                                                                cookie = res.headers["set-cookie"];

 

 

I want use set-cookies in my below code:

 

let

headersForCookie = [ //#"Host"= "abc.domian.com",
#"Authorization"= "Bearer "&Access_Token("password","token","code")[access_token]
],

Source = Web.Contents("https://abc.domian.com/api/cookie",[Headers=headersForCookie] ),
convertasJson = Json.Document(Source)

in
convertasJson

Appreciate any response. 

2 REPLIES 2
Anonymous
Not applicable

Hello Team

 

I'm still chasing for the information on cookies. I would appreciate any response.

Anonymous
Not applicable

Its been quite some time and I'm still trying to get information on this. I know we would go out of vacation soon or some would already be on vacation. I would appreciate any inputs before we all head out to our vacation. 

 

Wishing you all happy holidays. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors