<?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 Shortcut creation with code/API in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/3563357#M999</link>
    <description>&lt;P&gt;I have multiple delta tables in &lt;SPAN&gt;Azure Data Lake Storage Gen2. I would now like to create shortcuts to these delta tables. Instead of doing this manually in the lakehouse, I was wondering if this was possible with code (for example, Python) or an API. It would save a &lt;EM&gt;lot&lt;/EM&gt; of time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the recent announcement about the Lakehouse API (&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api," target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api),&lt;/A&gt;&amp;nbsp;but I am not seeing anything about creating shortcuts.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 15:28:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-12-01T15:28:14Z</dc:date>
    <item>
      <title>Shortcut creation with code/API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/3563357#M999</link>
      <description>&lt;P&gt;I have multiple delta tables in &lt;SPAN&gt;Azure Data Lake Storage Gen2. I would now like to create shortcuts to these delta tables. Instead of doing this manually in the lakehouse, I was wondering if this was possible with code (for example, Python) or an API. It would save a &lt;EM&gt;lot&lt;/EM&gt; of time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the recent announcement about the Lakehouse API (&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api," target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-api),&lt;/A&gt;&amp;nbsp;but I am not seeing anything about creating shortcuts.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 15:28:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/3563357#M999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-01T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut creation with code/API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/3563436#M1000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Currently API for creating shortcuts is not yet supported in Fabric. But this is on roadmap.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vnikhilanmsft_0-1701447905386.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1005219iD2103E69BE0F7ED9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vnikhilanmsft_0-1701447905386.png" alt="vnikhilanmsft_0-1701447905386.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For more information please refer to this link: &lt;A href="https://learn.microsoft.com/en-us/fabric/release-plan/onelake#shortcut-api" target="_blank" rel="noopener"&gt;Link1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please do let us know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 16:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/3563436#M1000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-01T16:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shortcut creation with code/API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/4640850#M8438</link>
      <description>&lt;P&gt;Good day,&amp;nbsp;&lt;BR /&gt;Has this been implemented already?&amp;nbsp;&lt;BR /&gt;I have attempted to perform the shortcut creation to Dataverse programatically in Fabric Notebook, however I can not make it work.&amp;nbsp;&lt;BR /&gt;Therefore, my question is, has the support for shortcut creation has already been added to the API or not yet?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Just in case, I will add some context to my case. I have created a Link to Microsoft Fabric from my Dataverse environment to a Lakehouse in Fabric. I have removed 1-2 tables in Fabric, thus removing the shortcuts. I want now to add the shortcuts back, but I need to do it programatically.&amp;nbsp;&lt;BR /&gt;This is the code that I am using to call the API:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;entity = 'actioncard'

url = f"https://api.fabric.microsoft.com/v1/workspaces/{WORKSPACE_ID}/items/{LAKEHOUSE_ID}/shortcuts"

headers = {
    "Authorization": f"Bearer {token}",
    "Content-Type": "application/json"
}

# create shortcuts for a list of entities
for entity in MISSING_ENTITIES:
    print(entity)
    payload = {
        "name": entity,
        "path": f"Tables/{entity}",
        "target": {
            "dataverse" : {
                "deltaLakeFolder": "",
                "environmentDomain": DATAVERSE_END_URL,
                "tableName": f"{entity}",
                "connectionId": CONNECTION_ID
            }
        }
    }

    try:
        response = requests.post(url, headers=headers, json=payload)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I am getting the following 400 error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to create actioncard: 400 - {"requestId":"1534w4aa-e00a-4f05-aa9f-d4c5573456c9","errorCode":"BadRequest","moreDetails":[{"errorCode":"RequestBodyValidationFailed","message":"Shortcut target uri /actioncard:Dataverse is malformed."}],"message":"The request could not be processed due to missing or invalid information"}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;If the support has been implemented but I am taking the wrong approach, please reffer to the correct documentation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 11:13:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Shortcut-creation-with-code-API/m-p/4640850#M8438</guid>
      <dc:creator>ElektroHulk</dc:creator>
      <dc:date>2025-04-07T11:13:25Z</dc:date>
    </item>
  </channel>
</rss>

