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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MisterSmith
Helper I
Helper I

Dynamically Change Notebook ID for each Workspace

Hi All

I want to set up a pipeline that dynamically selects the correct workspace and notebook, depending what environment/workspace the pipeline is in.  I am using the system variable to select the correct workspace.  However it doesn't provide a dropdown of available notebooks.  Therefore I am having to use the notebook id.  But I suspect the notebook id will change once it is deployed to a new environment/workspace.  Therefore I would like the pipeline to dynamically select the correct notebook id.  Can this be done.

 

MisterSmith_0-1725375904236.png

Thanks

 

Neil

 

1 ACCEPTED SOLUTION

Put a value into the notebook field, save and exit the pipeline.  Reopen the pipeline and delete the notebook value.  The list should now be available.  In short the pipeline needs to be refreshed.

View solution in original post

6 REPLIES 6
KhagendraWagle
Frequent Visitor

Please visit the post and try if it helps to solve your problem. 

https://community.fabric.microsoft.com/t5/Data-Pipeline/Set-NotebookId-dynamically-in-notebook-activ... 

kharithaas
Regular Visitor

Hi 

i have tried to make the workspaceid dynamically, but cant se any notebooks - its empty

 

kharithaas_0-1726216094706.png

 

Put a value into the notebook field, save and exit the pipeline.  Reopen the pipeline and delete the notebook value.  The list should now be available.  In short the pipeline needs to be refreshed.

MisterSmith
Helper I
Helper I

This looks to have been resolved by Microsoft.  When dynamically setting the workspace id, the list of available notebooks is now available in the drop down box.  Therefore there is no need for me to create a variable to dynamically set the notebook id for each workspace.

 

MisterSmith_0-1725531412311.png

 

v-kongfanf-msft
Community Support
Community Support

Hi @MisterSmith ,

 

Based on your description, to set up a pipeline that dynamically selects the correct workspace and laptop based on the environment, you can use a combination of system variables and mapped configurations. 

Refer to related document:

Set Variable activity - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-kongfanf-msft 

I am aware that I can I can use the variable activity to construct a variable.  However it is the makeup of the variable that I am quering.  How can I dynamically call the correct notebook id depending on the workspace.  I am unsure on how I could do this.

 

thanks

 

Neil

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.