Forum Discussion

Charline_74's avatar
Charline_74
Resolver I
1 year ago
Solved

Sempy Labs : Create Shortcut

Has anyone managed to get the Sempy Labs code to work for Shortcut? Here's my code :   labs.lakehouse.create_shortcut_onelake(     table_name="Groups",     source_lakehouse="id_LKH_Source",  ...
  • Charline_74's avatar
    1 year ago

    I've found the solution to my problem, but the shortcut is created in the form of a schema in my lakehouse, whereas I want a shortcut in the form of a table in my dbo schema.

    labs.lakehouse.create_shortcut_onelake(
        table_name="dbo/Ventes",
        source_lakehouse="011a5163-f6d2-4e5e-a11f-55e596144317",
        source_workspace="0867c351-fc09-440d-8258-a04a8d7adcdb",
        destination_lakehouse="beb576fc-7a5a-4395-8b7b-06b863d436fb",
        destination_workspace="b31d9a25-19d0-4188-a24f-a697b4b0342d",
        shortcut_name="Ventes"  
    )