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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

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