Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PAC8309
Regular Visitor

Shortcut List using spark in Notebooks

Hello,

 

I would like to know if it is possible to get a list using spark in notebook of all shorcut tables in a specific lakehouse without using the API (OneLake Shortcuts - List Shortcuts - REST API (Core) | Microsoft Learn)

 

thanks!

1 ACCEPTED SOLUTION
Vinodh247
Solution Supplier
Solution Supplier

Fabric currently does not expose a builtin spark method or metadata table that allows you to list OneLake shortcuts directly frm a spark notebook within a Lakehouse. The officially supported way to list shortcuts is through the REST API (list shortcuts core API) that you referenced. If you list tables using spark.catalog.listTables(), this will only show the managed or external tables registered in the metastore & not the shortcuts unless those they are mounted and registered as tables. As a workaround you can maintain a metadata table manually in your Lakehouse listing shortcuts & use the REST API externally (via Fabric Notebook using requests with access_token) and write the results to a Delta table for downstream use.

Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]

View solution in original post

2 REPLIES 2
Vinodh247
Solution Supplier
Solution Supplier

Fabric currently does not expose a builtin spark method or metadata table that allows you to list OneLake shortcuts directly frm a spark notebook within a Lakehouse. The officially supported way to list shortcuts is through the REST API (list shortcuts core API) that you referenced. If you list tables using spark.catalog.listTables(), this will only show the managed or external tables registered in the metastore & not the shortcuts unless those they are mounted and registered as tables. As a workaround you can maintain a metadata table manually in your Lakehouse listing shortcuts & use the REST API externally (via Fabric Notebook using requests with access_token) and write the results to a Delta table for downstream use.

Please 'Kudos' and 'Accept as Solution' if this answered your query.

Regards,
Vinodh
Microsoft MVP [Fabric]
suparnababu8
Super User
Super User

Hi @PAC8309  

 

I don't think it's possible without using API's as of now. You can  submit your Idea here: Fabric Ideas - Microsoft Fabric CommunityIf you get enough votes, Micorsoft ppl will implement this in future.

 

Thank you!!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.