<?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: Issue trying to get Semantic Model via api in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4276928#M58218</link>
    <description>&lt;P&gt;What you are describing in the behavior of long running operations in Microsoft Fabric APIs.&lt;/P&gt;&lt;P&gt;For APIs which return a result, like the "getDefinition", once the "Get Operation State" returns 200 with status:Succeeded, it will contain another URL for fetching the result. It should look like this in your case:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/%7Bguid%7D" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}&lt;/A&gt;/result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this documentation for more details:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/articles/long-running-operation" target="_blank"&gt;Long running operations - Microsoft Fabric REST APIs | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Nov 2024 07:03:42 GMT</pubDate>
    <dc:creator>AmosHersch</dc:creator>
    <dc:date>2024-11-10T07:03:42Z</dc:date>
    <item>
      <title>Issue trying to get Semantic Model via api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4274336#M58196</link>
      <description>&lt;P&gt;I'm making a post to {baseUrl}/workspaces/{workspaceId}/semanticModels/{semanticModelId}/getDefinition and I get a 202 with a Location url in the response header.&amp;nbsp; &amp;nbsp;Then, I am doing a get to that Location url which looks like:&amp;nbsp;&lt;A href="https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}" target="_blank"&gt;https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}&lt;/A&gt;.&amp;nbsp; That returns 200.&lt;BR /&gt;&lt;BR /&gt;I get only this json though: {"status":"Succeeded","createdTimeUtc":"2024-11-07T15:41:21.2885946","lastUpdatedTimeUtc":"2024-11-07T15:41:21.8198463","percentComplete":100,"error":null}&lt;BR /&gt;&lt;BR /&gt;How do I get the actual semantic model json?&amp;nbsp; Is there any documentation of the handling of the 202?&amp;nbsp; Maybe something else is required?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:07:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4274336#M58196</guid>
      <dc:creator>ddelapasse</dc:creator>
      <dc:date>2024-11-07T16:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue trying to get Semantic Model via api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4274377#M58198</link>
      <description>&lt;P&gt;Seems to be an inofficial endpoint?&amp;nbsp; The regular API still uses the "dataset" term.&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/datasets/get-dataset-in-group" target="_blank"&gt;Datasets - Get Dataset In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 16:34:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4274377#M58198</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-07T16:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue trying to get Semantic Model via api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4276928#M58218</link>
      <description>&lt;P&gt;What you are describing in the behavior of long running operations in Microsoft Fabric APIs.&lt;/P&gt;&lt;P&gt;For APIs which return a result, like the "getDefinition", once the "Get Operation State" returns 200 with status:Succeeded, it will contain another URL for fetching the result. It should look like this in your case:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/%7Bguid%7D" target="_blank" rel="nofollow noopener noreferrer"&gt;https://wabi-us-east2-b-primary-redirect.analysis.windows.net/v1/operations/{guid}&lt;/A&gt;/result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this documentation for more details:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/articles/long-running-operation" target="_blank"&gt;Long running operations - Microsoft Fabric REST APIs | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 07:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4276928#M58218</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2024-11-10T07:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue trying to get Semantic Model via api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4736151#M61871</link>
      <description>&lt;P&gt;No idea if you found resolution,&amp;nbsp; but It sounds like I have been exploring where you are.&amp;nbsp; I am by no means fluent in API, but I can give my experience/likely incorrect understanding.&amp;nbsp; Once you send the POST to actual start the process of getting the definition it makes a result file out on the server(eventually goes away btw).&amp;nbsp; The output you get back from that should have a line with this in it&lt;/P&gt;&lt;P&gt;"x-ms-operation-id": "{some form of a GUID}"&lt;/P&gt;&lt;P&gt;Then you have to send a&lt;/P&gt;&lt;P&gt;GET&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/v1/operations/{GUID" target="_blank"&gt;https://api.fabric.microsoft.com/v1/operations/{GUID&lt;/A&gt; of result from previous}/result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output of this last command sends you the information inform of line with payload that is encoded in base64.&amp;nbsp; But nonetheless it eventually allows you to see SQL embedded in the model and other attributes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I have yet to figure out is how to actually edit that SQL, re encode base64, then update that model defintion.&amp;nbsp; At a MediaTypeError so far, and swapped away from TMDL(default of get definition) to TMSL(seems to be what update wants) format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Again I am not by any means fluent in API, just wanted to give my experiences with getting to a point to read/see the definition if it helps anyone.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 14:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-trying-to-get-Semantic-Model-via-api/m-p/4736151#M61871</guid>
      <dc:creator>Dbrothers</dc:creator>
      <dc:date>2025-06-18T14:24:32Z</dc:date>
    </item>
  </channel>
</rss>

