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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Mongia_Cherif
Frequent Visitor

pass a dynamic variable from pipeline to notebook

I want to pass a dynamic variable to the notebook i add the variable in the 'parametre de base' in the notebook activity how can i use it inside the notebook 

Mongia_Cherif_0-1739194808381.png

 

2 ACCEPTED SOLUTIONS
nilendraFabric
Community Champion
Community Champion

hello @Mongia_Cherif 

 

Step1: Create a notebook with required parameters. And make sure to select “toggle parameter cell” under more commands.

nilendraFabric_0-1739198620307.png

 

 

nilendraFabric_1-1739198620550.png

 

 

 

Step 2: Create a Pipeline for notebook activity and select the notebook in the settings option which you have created. And pass the parameters under “base parameters”.

 

Note : Name should be same in base parameters and notebook in order to pass the parameter.

 

 

 

 

https://community.fabric.microsoft.com/t5/Data-Pipeline/notebook-parameter/m-p/3907708#:~:text=Step1....

 

 

is this is helpful please accept the solution

 

View solution in original post

Hello @Mongia_Cherif 

 

Thank you @nilendraFabric  for your response.

 

Thank you for reaching out to the Microsoft Fabric Community Forum. We understand  your requirement regarding passing a dynamic variable from pipeline to notebook. Consider the following to achieve this:

 

  • Create a dynamic variable in the pipeline using a set variable activity and create a notebook or use existing notebook in pipeline.
  • Connect it after the "Set Variable" activity. Now pass the dynamic variable through the base parameters section in notebook.

     

vkarpurapud_2-1739258984264.png    vkarpurapud_4-1739259261390.png

 

  • Once the parameter is passed from the pipeline now retrieve the value inside the Fabric Notebook using necessary libraries. 

     

If my response has resolved your query, please mark it as the Accepted Solution to help others. Additionally, I would appreciate a 'Kudos' if you found my response helpful.

 

Thank you!

View solution in original post

4 REPLIES 4
Mongia_Cherif
Frequent Visitor

 

 

Hello @Mongia_Cherif 

 

Thank you @nilendraFabric  for your response.

 

Thank you for reaching out to the Microsoft Fabric Community Forum. We understand  your requirement regarding passing a dynamic variable from pipeline to notebook. Consider the following to achieve this:

 

  • Create a dynamic variable in the pipeline using a set variable activity and create a notebook or use existing notebook in pipeline.
  • Connect it after the "Set Variable" activity. Now pass the dynamic variable through the base parameters section in notebook.

     

vkarpurapud_2-1739258984264.png    vkarpurapud_4-1739259261390.png

 

  • Once the parameter is passed from the pipeline now retrieve the value inside the Fabric Notebook using necessary libraries. 

     

If my response has resolved your query, please mark it as the Accepted Solution to help others. Additionally, I would appreciate a 'Kudos' if you found my response helpful.

 

Thank you!

nilendraFabric
Community Champion
Community Champion

hello @Mongia_Cherif 

 

Step1: Create a notebook with required parameters. And make sure to select “toggle parameter cell” under more commands.

nilendraFabric_0-1739198620307.png

 

 

nilendraFabric_1-1739198620550.png

 

 

 

Step 2: Create a Pipeline for notebook activity and select the notebook in the settings option which you have created. And pass the parameters under “base parameters”.

 

Note : Name should be same in base parameters and notebook in order to pass the parameter.

 

 

 

 

https://community.fabric.microsoft.com/t5/Data-Pipeline/notebook-parameter/m-p/3907708#:~:text=Step1....

 

 

is this is helpful please accept the solution

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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