<?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: Getting DataSource Metadata from datasourceId in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4772123#M62298</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="115" data-end="191"&gt;Thank you for sharing the error screenshot and for the detailed explanation.&lt;/P&gt;
&lt;P data-start="193" data-end="250"&gt;Could you please try the following troubleshooting steps&lt;/P&gt;
&lt;P data-start="193" data-end="250"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start by checking your gateway permissions. In the Power BI Service, go to Manage Gateways, find the relevant gateway, and make sure your account or service principal is listed with Admin or Manage access under the Users tab for that datasource. Next, check that your token includes the necessary scopes like Dataset.Read.All and Gateway.Read.All you may also need Tenant.Read.All for broader access. If you're using a service principal, ensure it has been granted access in the Admin Portal. Finally, to confirm the datasource ID, use the API call GET /gateways/{gatewayId}/datasources to list all datasources connected to the gateway&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem-tshoot" target="_blank" rel="noopener"&gt;Troubleshoot gateways - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We truly appreciate your continued engagement and thank you for being an active and valued member of the community.&lt;/P&gt;
&lt;P&gt;If you're still experiencing any challenges, please don’t hesitate to reach out&amp;nbsp; we’d be more than happy to assist you further.&lt;/P&gt;
&lt;P&gt;We look forward to hearing from you.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 10:22:53 GMT</pubDate>
    <dc:creator>v-lgarikapat</dc:creator>
    <dc:date>2025-07-31T10:22:53Z</dc:date>
    <item>
      <title>Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770399#M62286</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to get datasource details (database name, table name) from the datasoureceID, gatewayID or datasourceuniqueID.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have access to the admin APIs, but couldnt figure out a way to get further detail from the datasources through using the datasourceIDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasource is a synapse data lakehouse, the dashboards connect to synapse tables/views.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 10:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770399#M62286</guid>
      <dc:creator>DanrleiAlves</dc:creator>
      <dc:date>2025-07-21T10:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770627#M62289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft Fabric community forum!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To retrieve database and table details from a datasource, especially for Synapse Lakehouse connections, you can start with the Gateway Datasource API:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/dataflows/get-dataflow-data-sources#code-try-0" target="_blank"&gt;Dataflows - Get Dataflow Data Sources - 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;If you're trying to extract used tables and fields, check out this community thread &lt;A href="https://community.fabric.microsoft.com/t5/Service/Using-Power-BI-REST-API-to-get-list-of-used-tables-and-fields/m-p/2996519" target="_blank"&gt;Solved: Using Power BI REST API to get list of used tables... - Microsoft Fabric Community&lt;/A&gt; it discusses using the Scanner API to get dataset-level metadata like tables, columns, and measures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We truly appreciate your continued engagement and thank you for being an active and valued member of the community.&lt;/P&gt;
&lt;P&gt;If you're still experiencing any challenges, please don’t hesitate to reach out — we’d be more than happy to assist you further.&lt;/P&gt;
&lt;P&gt;We look forward to hearing from you.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 11:51:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770627#M62289</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-21T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770705#M62290</link>
      <description>&lt;P&gt;Thanks for the fast reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dataflows endpoint suggested doesnt give the table name. Gives only the database (in my case everything is in serverless, so not much useful).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanrleiAlves_0-1753100637776.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1284843i1CF7622B61A2A5E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanrleiAlves_0-1753100637776.png" alt="DanrleiAlves_0-1753100637776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The connection path would give all the information im looking for. But i havent been able to figure out a way to get to that information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of using this endpoint&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/admin/gateways/" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admin/gateways/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{gatewayId}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/datasources/&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{datasourceid}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;based on this doc.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/get-datasource" target="_blank" rel="noopener"&gt;Gateways - Get Datasource - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to provide the GatewayID and DatasourceID and hopefully get the path information i need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But im getting this issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanrleiAlves_0-1753102019535.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1284851i1579D89BDB290102/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanrleiAlves_0-1753102019535.png" alt="DanrleiAlves_0-1753102019535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea what this might be? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 12:47:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4770705#M62290</guid>
      <dc:creator>DanrleiAlves</dc:creator>
      <dc:date>2025-07-21T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4772123#M62298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="115" data-end="191"&gt;Thank you for sharing the error screenshot and for the detailed explanation.&lt;/P&gt;
&lt;P data-start="193" data-end="250"&gt;Could you please try the following troubleshooting steps&lt;/P&gt;
&lt;P data-start="193" data-end="250"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start by checking your gateway permissions. In the Power BI Service, go to Manage Gateways, find the relevant gateway, and make sure your account or service principal is listed with Admin or Manage access under the Users tab for that datasource. Next, check that your token includes the necessary scopes like Dataset.Read.All and Gateway.Read.All you may also need Tenant.Read.All for broader access. If you're using a service principal, ensure it has been granted access in the Admin Portal. Finally, to confirm the datasource ID, use the API call GET /gateways/{gatewayId}/datasources to list all datasources connected to the gateway&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem-tshoot" target="_blank" rel="noopener"&gt;Troubleshoot gateways - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We truly appreciate your continued engagement and thank you for being an active and valued member of the community.&lt;/P&gt;
&lt;P&gt;If you're still experiencing any challenges, please don’t hesitate to reach out&amp;nbsp; we’d be more than happy to assist you further.&lt;/P&gt;
&lt;P&gt;We look forward to hearing from you.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best regards,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 10:22:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4772123#M62298</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-31T10:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4782798#M62434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard back from you regarding our last response, so I just wanted to check in to see if you were able to resolve the issue. If you have any further questions or need assistance, please feel free to let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 10:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4782798#M62434</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-07-31T10:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4786610#M62502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We haven’t heard back from you regarding our last response, so I just wanted to check in to see if you were able to resolve the issue. If you have any further questions or need assistance, please feel free to let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 11:27:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4786610#M62502</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-08-04T11:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DataSource Metadata from datasourceId</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4789680#M62565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1315671"&gt;@DanrleiAlves&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We haven’t heard back from you regarding our last response, so I just wanted to check in to see if you were able to resolve the issue. If you have any further questions or need assistance, please feel free to let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best Regards,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Lakshmi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 06:23:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Getting-DataSource-Metadata-from-datasourceId/m-p/4789680#M62565</guid>
      <dc:creator>v-lgarikapat</dc:creator>
      <dc:date>2025-08-07T06:23:09Z</dc:date>
    </item>
  </channel>
</rss>

