Forum Discussion
Cannot set the data source for a Fabric Notebook using the API
- 9 months ago
The only reliable way that I've seen yet to automate this is to create a separate notebook that sets the connections for the other notebooks.
I have yet to find a payload that will work via REST API. This is consistent with the answer on another thread:
Re: REST API vs. Notebookutils Lakehouse Update Is... - Microsoft Fabric Community
It would likely be easier to create another notebook just for the purpose of setting the data source via notebookutils, which can be done directly without jumping through the hoops of creating a mysteriously formatted .platform file.
Hi stuckerj ,
Please refer below link.
Solved: Update Notebook attached lakehouse using code - Microsoft Fabric Community
Lakehouse management API - Microsoft Fabric | Microsoft Learn
Solved: Rest Api to set default lakehouse of notebook - Microsoft Fabric Community
Solved: Re: Change default Lakehouse with notebookutils - Microsoft Fabric Community
Solved: How to set default Lakehouse in the notebook progr... - Microsoft Fabric Community
Solved: REST API TO CREATE NOTEBOOK - Microsoft Fabric Community
Solved: Re: Automate attachment of Lakehouse/data source i... - Microsoft Fabric Community
I hope this information helps. Please do let us know if you have any further queries.
Regards,
Dinesh
- v-dineshya9 months agoCommunity Support
Hi stuckerj ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh