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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
NEK
Regular Visitor

Pass notebook running day and time to notebook

Hello Expert,

 

I have a use case where I need to run a notebook within my pipeline every day and pass the running day and time parameters to notebook. 

What is the best way to achieve this?

1 ACCEPTED SOLUTION
AndyDDC
Most Valuable Professional
Most Valuable Professional

Hi, you can create a parameter cell in the Notebook Spark compute for Data Engineering and Data Science - Microsoft Fabric | Microsoft Learn and then in the Notebook activity, add a parameter to the "Base Parameters" section.  You can then use the pipeline expression language to create a current datetime (or pass in any other value you need).

 

AndyDDC_1-1698258396125.png

 

AndyDDC_2-1698258454635.png

 

View solution in original post

6 REPLIES 6
NEK
Regular Visitor

Thanks AndyDDC

v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @NEK 

 

Thanks for using Microsoft Fabric Community and posting your ask here.

Just wanted to check whether your issue got resolved. Continue using Fabric Community for help regarding your queries.

 

Thanks

AndyDDC
Most Valuable Professional
Most Valuable Professional

Hi, you can create a parameter cell in the Notebook Spark compute for Data Engineering and Data Science - Microsoft Fabric | Microsoft Learn and then in the Notebook activity, add a parameter to the "Base Parameters" section.  You can then use the pipeline expression language to create a current datetime (or pass in any other value you need).

 

AndyDDC_1-1698258396125.png

 

AndyDDC_2-1698258454635.png

 

NEK
Regular Visitor

Thank you AndyDDC. What is the way automatically run the notebook every day or some days of the week. Do we need to use something like schedule trigger?

AndyDDC
Most Valuable Professional
Most Valuable Professional

You can either schedule the data pipeline that runs the notebook activity https://learn.microsoft.com/en-us/fabric/data-factory/pipeline-runs#scheduled-data-pipeline-runs

 

or schedule the notebook itself by clicking Run then Schedule in the notebook editor.

 

AndyDDC
Most Valuable Professional
Most Valuable Professional

Hi @NEK if this has been of help would you please mark my reply as the solution to close this off. Thank you

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.