<?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: PBI API Rest: endpoints are returning empty values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119222#M54982</link>
    <description>&lt;P&gt;Run your request in the sandbox first.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/groups/get-groups" target="_blank"&gt;Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if you get data there.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 18:31:50 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-08-26T18:31:50Z</dc:date>
    <item>
      <title>PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4118957#M54977</link>
      <description>&lt;P&gt;[Python code]&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;SPAN&gt;base_url = &lt;/SPAN&gt;&lt;SPAN&gt;'https://api.powerbi.com/v1.0/myorg/'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;header = &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;'Authorization'&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;'Bearer &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;access_token&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dedicated_groups = &lt;/SPAN&gt;&lt;SPAN&gt;'groups'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;groups = requests.get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;base_url + dedicated_groups&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; headers=header&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; groups = json.loads&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;groups.content&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;json.dumps&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;groups&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; indent=&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; sort_keys=&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;except&lt;/SPAN&gt;&lt;SPAN&gt; Exception &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; e&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'\nRequest failed:'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; e&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pd.concat([pd.json_normalize(x) for x in groups['value']])&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it returns:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;Response [200]&amp;gt; &lt;BR /&gt;{ &lt;BR /&gt;"@odata.context": "&lt;/SPAN&gt;&lt;A href="https://wabi-brazil-south-b-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups" target="_blank" rel="nofollow noopener"&gt;https://wabi-brazil-south-b-primary-redirect.analysis.windows.net/v1.0/myorg/$metadata#groups&lt;/A&gt;&lt;SPAN&gt;", &lt;BR /&gt;"@odata.count": 0, &lt;BR /&gt;"value": [] &lt;BR /&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This problem occurs in multiple endpoints, get_dashboards.&lt;/P&gt;&lt;P&gt;But it works in the&amp;nbsp;&lt;SPAN&gt;get_capacities endpoint.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;I have the admin account called "dados", under this account I have the account "dashboards".&lt;/P&gt;&lt;P&gt;All of my dashboards are hosted in the "dashboards" account spread throughtout 4 workspaces (groups).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of the access were granted to both accounts in the PBI Admin portal, both for workspaces and dashboards. Also in the Admin Portal was granted access to the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:33:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4118957#M54977</guid>
      <dc:creator>tahechadv_2022</dc:creator>
      <dc:date>2024-08-26T15:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119222#M54982</link>
      <description>&lt;P&gt;Run your request in the sandbox first.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/groups/get-groups" target="_blank"&gt;Groups - Get Groups - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if you get data there.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 18:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119222#M54982</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-08-26T18:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119335#M54985</link>
      <description>&lt;P&gt;And if it doesnt work?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 19:52:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119335#M54985</guid>
      <dc:creator>tahechadv_2022</dc:creator>
      <dc:date>2024-08-26T19:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119349#M54986</link>
      <description>&lt;P&gt;Then you don't have enough permissions.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119349#M54986</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-08-26T20:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119395#M54987</link>
      <description>&lt;P&gt;What are the permissions required beyond the API (admin portal), workspaces and dashboards?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119395#M54987</guid>
      <dc:creator>tahechadv_2022</dc:creator>
      <dc:date>2024-08-26T20:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: PBI API Rest: endpoints are returning empty values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119406#M54988</link>
      <description>&lt;P&gt;Described in the Scopes section&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/" target="_blank"&gt;Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:56:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-API-Rest-endpoints-are-returning-empty-values/m-p/4119406#M54988</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-08-26T20:56:48Z</dc:date>
    </item>
  </channel>
</rss>

