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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
Super User
Super User

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
Super User
Super User

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?

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.

 

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
August 2025 community update carousel

Fabric Community Update - August 2025

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