<?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 Submit a Delete REST Command through PowerQuery in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Submit-a-Delete-REST-Command-through-PowerQuery/m-p/806604#M20938</link>
    <description>&lt;P&gt;I have the following code that Posts to a REST API (that requires BASIC authentication). This then retrieves a session key and does a GET to obtain the JSON information (passing the session key as a parameter). I would like to delete the session key using a DELETE HTTP method&amp;nbsp; after I have the data (as there is a limit on the number of sessions we can have open simulataneously). Any tips on how I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; Source = (Web.Contents(APIURL, [Headers=[Accept="application/json", #"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"], Content=Text.ToBinary("UserID=USERID&amp;amp;CompanyID=COMP&amp;amp;Password=PASS&amp;amp;ProjectNo=PROJ&amp;amp;Application=APPNAME"), RelativePath="/session"])),
&amp;nbsp; &amp;nbsp; SessionKey = Json.Document(Source),
&amp;nbsp; &amp;nbsp; SessionKeyHeader = "Basic " &amp;amp; SessionKey,
&amp;nbsp; &amp;nbsp; Source1= Json.Document(Web.Contents(APIURL, [Headers=[Authorization= SessionKeyHeader],RelativePath="Report/"&amp;amp;REPORTNUM]))
&amp;nbsp;
in
&amp;nbsp; &amp;nbsp; Source1&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Oct 2019 08:11:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-01T08:11:59Z</dc:date>
    <item>
      <title>Submit a Delete REST Command through PowerQuery</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Submit-a-Delete-REST-Command-through-PowerQuery/m-p/806604#M20938</link>
      <description>&lt;P&gt;I have the following code that Posts to a REST API (that requires BASIC authentication). This then retrieves a session key and does a GET to obtain the JSON information (passing the session key as a parameter). I would like to delete the session key using a DELETE HTTP method&amp;nbsp; after I have the data (as there is a limit on the number of sessions we can have open simulataneously). Any tips on how I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp; &amp;nbsp; Source = (Web.Contents(APIURL, [Headers=[Accept="application/json", #"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"], Content=Text.ToBinary("UserID=USERID&amp;amp;CompanyID=COMP&amp;amp;Password=PASS&amp;amp;ProjectNo=PROJ&amp;amp;Application=APPNAME"), RelativePath="/session"])),
&amp;nbsp; &amp;nbsp; SessionKey = Json.Document(Source),
&amp;nbsp; &amp;nbsp; SessionKeyHeader = "Basic " &amp;amp; SessionKey,
&amp;nbsp; &amp;nbsp; Source1= Json.Document(Web.Contents(APIURL, [Headers=[Authorization= SessionKeyHeader],RelativePath="Report/"&amp;amp;REPORTNUM]))
&amp;nbsp;
in
&amp;nbsp; &amp;nbsp; Source1&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Submit-a-Delete-REST-Command-through-PowerQuery/m-p/806604#M20938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-01T08:11:59Z</dc:date>
    </item>
  </channel>
</rss>

