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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Sureshmannem
Frequent Visitor

Support - How to pass pipeline parameter values to Notebook (pyspark(python))

Hi Team,

 

We have a requirement to use pipeline parameters into notebook at the end of the pipelien execution.

I tried passing parameters using below approaches, it is not passing the values and resulting to pipeline failure. kindly suggest any working solution to pass pipeline parameters into Notebook (pyspark (python))

#1

file_category = mssparkutils.env.get_parameter("file_category")

copy_counts = mssparkutils.env.get_parameter("copy_counts")

#2
file_category = os.environ.get("file_category")
copy_counts = os.environ.get("copy_counts")
 
Thanks in advance
1 ACCEPTED SOLUTION
Gpop13
Advocate IV
Advocate IV

hi @Sureshmannem ,

Can you not set the base parameters of the notebooks with the pipeline variables something like below

 

Gpop13_0-1751290921240.png

and then in the notebook you can directly use those variables

 

View solution in original post

2 REPLIES 2
Gpop13
Advocate IV
Advocate IV

hi @Sureshmannem ,

Can you not set the base parameters of the notebooks with the pipeline variables something like below

 

Gpop13_0-1751290921240.png

and then in the notebook you can directly use those variables

 

Hi @Gpop13 

 

Thanks for your prompt support!
I realized I was overengineering the solution. I’ve now used the parameters directly in the notebook, and it works as expected.

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.