Forum Discussion

mjcrs012's avatar
mjcrs012
New Member
3 years ago
Solved

Is it possible to pass parameter from notebook activity to notebook

Is it possible to pass paremeters from notebook activity to notebook?

Thanks!

  • Hi mjcrs012 

     

    Welcome to Fabric Community and thanks for posting your question here.

     

    Yes, it is possible to pass parameters from a notebook activity to a notebook in Microsoft Fabric. To do this, you can use the Settings tab of the Notebook activity. In the Settings tab, under the Parameters section, you can add parameters that you want to pass to the notebook. The parameters can be of any type, such as strings, numbers, or arrays.

     

    Here are the steps you can follow:

     

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

     

    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.

     

     

     

    Step 3: In the output you can see the parameter which are passed in Step 2.

     

     

    I hope this information is helpful. Please let me know if you have any other questions.

6 Replies

  • v-cboorla-msft's avatar
    v-cboorla-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi mjcrs012 

     

    Welcome to Fabric Community and thanks for posting your question here.

     

    Yes, it is possible to pass parameters from a notebook activity to a notebook in Microsoft Fabric. To do this, you can use the Settings tab of the Notebook activity. In the Settings tab, under the Parameters section, you can add parameters that you want to pass to the notebook. The parameters can be of any type, such as strings, numbers, or arrays.

     

    Here are the steps you can follow:

     

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

     

    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.

     

     

     

    Step 3: In the output you can see the parameter which are passed in Step 2.

     

     

    I hope this information is helpful. Please let me know if you have any other questions.