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

October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more

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

5 REPLIES 5
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
Sept Fabric Carousel

Fabric Monthly Update - September 2024

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

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.