<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use &amp;quot;set-cookies&amp;quot; in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1562151#M26825</link>
    <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wishing you all happy holidays.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 08:38:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-21T08:38:00Z</dc:date>
    <item>
      <title>How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1474402#M26363</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me understand how to use "&lt;STRONG&gt;set-cookies&lt;/STRONG&gt;" in power query. I've been trying this from a long time but do not have any success. I do not see any documentation that could guide me. I've looked at pretty much all the mentions of cookies in the community and none of it helped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;request = Web.Contents("https://domain/api/cookie", [Headers=[#"Authorization"="Bearer "&amp;amp;Access_Token("password","token","code")[access_token]]),&lt;STRONG&gt;// Only this gets me the response as abc.domain.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//response = Json.FromValue(request),&lt;BR /&gt;//converttojson = Json.Document(response)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;body = Json.Document(request),&lt;BR /&gt;result = if (Record.HasFields(body, {"error", "error_description"})) then&lt;BR /&gt;error Error.Record(body[error], body[error_description], body)&lt;BR /&gt;else&lt;BR /&gt;body&lt;BR /&gt;in&lt;BR /&gt;result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to use &lt;STRONG&gt;"set-cookies" in the above code as the way it is being used in the below code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&amp;gt; var cookie = "";&lt;/P&gt;&lt;P&gt;---&amp;gt; var headersForCookie = {&lt;BR /&gt;"Host": "abc.domain.com",&lt;BR /&gt;"Authorization": "Bearer "+ token&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;request({&lt;BR /&gt;"url": "/api/cookie",&lt;BR /&gt;"method": "GET",&lt;BR /&gt;"headers": headersForCookie&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;in = (err, res, body){&lt;BR /&gt;&lt;STRONG&gt;print of// this is a very important step of verification: JSON.docume(res.headers["set-cookie"])}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cookie = res.headers["set-cookie"];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would really appreciate some help on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 12:33:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1474402#M26363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1474882#M26366</link>
      <description>&lt;P&gt;Any help on this would be appreciated. I don't seem to have any alternative to understand this than reaching out to the community.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:36:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1474882#M26366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-04T16:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1510658#M26569</link>
      <description>&lt;P&gt;&lt;SPAN&gt;@Team I've explored everything there is on the internet about cookies using power queries. There is very limited or no information. There have been a very few posts in the past about cookies asking different questions. Looks like a handful of connector might have tried using cookies so far but there is no concrete information online. Could someone from the Microsoft Team, let me know if there is a way to use cookies in Power Query.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone from the community has done it, I would appreciate your inputs.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 10:11:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1510658#M26569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-23T10:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1515919#M26595</link>
      <description>&lt;P&gt;Does anyone have any inputs on this. I would appreciate any response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 10:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1515919#M26595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1517724#M26603</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From the looks of things, you've mined all existing community content and come up with no further solutions. I suspect that if someone would have figured this out within the community, it would have been shared and searchable in some capacity, as it would be pretty valuable for a lot of people. I would say that if Chris Webb doesn't have a post about it then it's probably not a thing (&lt;A href="https://blog.crossjoin.co.uk/category/power-query/" target="_self"&gt;here's his power query post archive&lt;/A&gt; if you want to take a look).&lt;/P&gt;
&lt;P&gt;There is some support for &lt;A href="https://docs.microsoft.com/en-us/power-query/handlingauthentication?WT.mc_id=DP-MVP-5003712" target="_self"&gt;authorisation/session handling in custom connectors&lt;/A&gt;, but I believe that this is currently all that's possible at present. I don't do any work in this area so can't advise further but there might be something in that documentation that might be able to help you, if you haven't tried it already.&lt;/P&gt;
&lt;P&gt;If you're at your limit with the community resources, have you tried opening a support ticket with Microsoft to get an official answer? If you have a pro subscription, &lt;A href="https://powerbi.microsoft.com/en-us/support/pro/" target="_self"&gt;support is free&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I personally haven't got this to work in Power Query. In my case, I ended up writing an &lt;A href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook?WT.mc_id=DP-MVP-5003712" target="_self"&gt;Azure Function&lt;/A&gt; to abstract the logic to a C# endpoint, which would handle this part and return the results to Power Query, effectively wrapping the web API and making it a simple HTTP request for Power Query. The function cost nothing to host and run as the workload could be handled under the consumption plan, and maybe a few hours of my time to write the code. If you're familiar with C#, JS/TS, Python, PHP, Java or PowerShell then these can be a cheap, quick and secure way to manage these kinds of issues, if you haven't considered them.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 03:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1517724#M26603</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-11-26T03:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1520323#M26612</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;Thank you for the response. Unfortunately, I don't have a pro account to submit a ticket and from our organisation it might not be possible to get a pro account. Hence, I've been running back and forth in the community here and other places on the internet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked at the references you have shared and unfortunately, they haven't helped. However, I appreciate your response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 09:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1520323#M26612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-27T09:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1562151#M26825</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wishing you all happy holidays.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 08:38:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1562151#M26825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-21T08:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "set-cookies"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1586049#M27093</link>
      <description>&lt;P&gt;Hello Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still chasing for the information on cookies. I would appreciate any response.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 09:29:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-quot-set-cookies-quot/m-p/1586049#M27093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-07T09:29:09Z</dc:date>
    </item>
  </channel>
</rss>

