<?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: M Query RESTful webservice as data source in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/M-Query-RESTful-webservice-as-data-source/m-p/395918#M11790</link>
    <description>&lt;P&gt;I now made some progress. I have compared the Header from the REST client to the Header in PowerBI and added the Cookie Header. Afterwards it worked fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
Source = Json.Document(Web.Contents("https://myjira.atlassian.net/rest/api/2/search?jql=project='BESAD'", [Headers=[Authorization="xxx",Cookie="somecookiestring"]])),
issues = Source[issues],
issues1 = issues{0},
fields = issues1[fields]
in
fields&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I have just copied the cookie information from the REST client; but what do I need to use in PowerBI as Cookie information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 09:42:10 GMT</pubDate>
    <dc:creator>Stefan2902</dc:creator>
    <dc:date>2018-04-13T09:42:10Z</dc:date>
    <item>
      <title>M Query RESTful webservice as data source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/M-Query-RESTful-webservice-as-data-source/m-p/395845#M11787</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am rather new to PBI but hope I can express my problem in a meaningful manner. I want to pull data which comes from a RESTful webservice. Subsequent you can find the details I am using in a RESTful client which returns a proper JSON:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GET / https://myjira.atlassian.net/rest/api/2/search?jql=project="XXX"
Header / Authorization:xxxxxxxxxxxxxxxxxxxx&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now I have tried to implement this in PBI query as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
address = "https://myjira.atlassian.net/rest/api/2/search",
header = [ #"Authorization" = "xxxxxxxxxxx"],
queryOptions = [#"?jql" = "project=XXX"],
Source = Json.Document(Web.Contents(address , [Headers = header, Query = queryOptions])),
issues = Source[issues]
in
issues&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This returns a table but the "issues" are empty?! I do not get the 23 expected issues within the JIRA project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im assumption is that it has something to do with the "jqp" part and the multiple "=" symbols&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eventually the address need to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://myjira.atlassian.net/rest/api/2/search?jql=project="XXX"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea how to fix or better troubleshoot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 08:29:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/M-Query-RESTful-webservice-as-data-source/m-p/395845#M11787</guid>
      <dc:creator>Stefan2902</dc:creator>
      <dc:date>2018-04-13T08:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: M Query RESTful webservice as data source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/M-Query-RESTful-webservice-as-data-source/m-p/395918#M11790</link>
      <description>&lt;P&gt;I now made some progress. I have compared the Header from the REST client to the Header in PowerBI and added the Cookie Header. Afterwards it worked fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
Source = Json.Document(Web.Contents("https://myjira.atlassian.net/rest/api/2/search?jql=project='BESAD'", [Headers=[Authorization="xxx",Cookie="somecookiestring"]])),
issues = Source[issues],
issues1 = issues{0},
fields = issues1[fields]
in
fields&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I have just copied the cookie information from the REST client; but what do I need to use in PowerBI as Cookie information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 09:42:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/M-Query-RESTful-webservice-as-data-source/m-p/395918#M11790</guid>
      <dc:creator>Stefan2902</dc:creator>
      <dc:date>2018-04-13T09:42:10Z</dc:date>
    </item>
  </channel>
</rss>

