<?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 Issues with the API: Items - Get Report Definition in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856337#M51859</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have been using a lot of the API's from Power BI, and with great luck.&lt;/P&gt;&lt;P&gt;Now I'm creating some cool stuff by using Log Analytics, and one of the things I get from Log Analytics is the VisualID. To connect VisualID to the correct Report page in a report I need to find this in the report.json file. This is something I can get with the&amp;nbsp;Get Report Definition API.&lt;BR /&gt;&lt;BR /&gt;But, when I try to use this API it returns this error message:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"errorCode"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"BadRequest"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Unable to process the operation due to an error in the request"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In the documentaion it does not say anything about the body:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see the doc says its a POST, but no body as I can see. I have tried to use GET as well, but no luck.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I hit the TRY IT button it works, so that is really strange.&lt;BR /&gt;&lt;BR /&gt;Someone else been in the same situation and can help out?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Br&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Marius &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 20 Apr 2024 23:43:24 GMT</pubDate>
    <dc:creator>mariussve1</dc:creator>
    <dc:date>2024-04-20T23:43:24Z</dc:date>
    <item>
      <title>Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856337#M51859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have been using a lot of the API's from Power BI, and with great luck.&lt;/P&gt;&lt;P&gt;Now I'm creating some cool stuff by using Log Analytics, and one of the things I get from Log Analytics is the VisualID. To connect VisualID to the correct Report page in a report I need to find this in the report.json file. This is something I can get with the&amp;nbsp;Get Report Definition API.&lt;BR /&gt;&lt;BR /&gt;But, when I try to use this API it returns this error message:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"errorCode"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"BadRequest"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Unable to process the operation due to an error in the request"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;In the documentaion it does not say anything about the body:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see the doc says its a POST, but no body as I can see. I have tried to use GET as well, but no luck.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I hit the TRY IT button it works, so that is really strange.&lt;BR /&gt;&lt;BR /&gt;Someone else been in the same situation and can help out?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Br&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Marius &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 20 Apr 2024 23:43:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856337#M51859</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-04-20T23:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856494#M51861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/350187"&gt;@mariussve1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Did you try calling the API for the same report from the "Try It" page of the documentation&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP#code-try-0" target="_blank"&gt;Items - Get Report Definition - REST API (Report) | Microsoft Learn&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;If it returns an error, can you please paste here and response headers and body?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 05:39:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856494#M51861</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2024-04-21T05:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856505#M51862</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/350187"&gt;@mariussve1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I ran a POST call from Power BI and it is working, Follow the below snippet and you should be able to run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents("
https://api.fabric.microsoft.com/v1/workspaces/&amp;lt;workspaceId&amp;gt;/reports/&amp;lt;reportId&amp;gt;/getDefinition",[Headers=[Authorization="Bearer &amp;lt;Bearer Token&amp;gt;",#"Content-Type" = "application/json" ], Content=Json.FromValue([])]  ))
in
Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dont forget to include your report id, workspsce id and bearer token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P&gt;If the post helps please give a thumbs up&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If it solves your issue, please accept it as the solution to help the other members find it more quickly.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Tharun&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 05:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856505#M51862</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2024-04-21T05:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856530#M51863</link>
      <description>&lt;P&gt;Hi, when I use the "try it" button it works, so kt does not give any errors then. Only when I use postman&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 06:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856530#M51863</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-04-21T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856531#M51864</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will try from Power Query. Are you able to run the request from Postman?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 06:43:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856531#M51864</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-04-21T06:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856585#M51865</link>
      <description>&lt;P&gt;I tried to copy the token from &lt;SPAN&gt;"Try It" page of the documentation, and then it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I reviewd access to the SPN and found out I needed to grant some more access. Now everything works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Marius&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 08:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/3856585#M51865</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-04-21T08:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4066817#M54390</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/350187"&gt;@mariussve1&lt;/a&gt;, could you tell me what permisssion you grant to your SPN. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4066817#M54390</guid>
      <dc:creator>Longg</dc:creator>
      <dc:date>2024-07-29T10:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4705416#M61376</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Does anyone knows if this have stopped working? Im not able to get any result from the api.&lt;BR /&gt;&lt;BR /&gt;It only returns:&lt;BR /&gt;&lt;SPAN&gt;Resultat: {'status': 'Succeeded', 'createdTimeUtc': '2025-05-23T14:58:32.8582529', 'lastUpdatedTimeUtc': '2025-05-23T14:58:33.3270162', 'percentComplete': 100, 'error': None}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;But the payload and base64 code is missing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 15:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4705416#M61376</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2025-05-23T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with the API: Items - Get Report Definition</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4705420#M61377</link>
      <description>&lt;P&gt;When I try this "Try it" button here:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP&amp;amp;tryIt=true&amp;amp;source=docs#code-try-0" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/report/items/get-report-definition?tabs=HTTP&amp;amp;tryIt=true&amp;amp;source=docs#code-try-0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It only returns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariussve1_0-1748012626378.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1270862i0EF5C2C04E36A2BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariussve1_0-1748012626378.png" alt="mariussve1_0-1748012626378.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 15:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issues-with-the-API-Items-Get-Report-Definition/m-p/4705420#M61377</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2025-05-23T15:03:58Z</dc:date>
    </item>
  </channel>
</rss>

