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
tan_thiamhuat
Post Patron
Post Patron

how to pass parameters to Dataflow in a Data Pipeline?

I need to pass a range of dates (generated by a Notebook) to a Dataflow which is in a ForEach loop, as seen below:

tan_thiamhuat_0-1754795212752.png

a) In the Notebook, it creates a array of dates: 

tan_thiamhuat_1-1754795298248.png

with its StartDate and EndDate specified as Parameters:

tan_thiamhuat_3-1754795427987.png

 

b) I need to pass those of each date ['2025-08-01','2025-08-02', '2025-08-03'] to the Dataflow in the ForEach loop. In the ForEach, Settings->Items, I have below:

tan_thiamhuat_5-1754795599348.png

c) In the Dataflow, I have the InputDate which is hardcoded:

tan_thiamhuat_6-1754795747974.png

How do I pass the InputDate as a Parameter to the Dataflow?

Thanks.

 

1 ACCEPTED SOLUTION
v-prasare
Community Support
Community Support

Hi @tan_thiamhuat,

please follow below steps to pass dates dynamically:

 

  • Make your notebook return a JSON array of dates like: ["2025-08-01","2025-08-02","2025-08-03"]
  • In the ForEach Items box, read that output: @json(activity('Notebook_GenerateDates').output.result.exitValue)
  • Pass into Dataflow – Inside the ForEach, open the Dataflow activity → Parameters tab.
    1. Create a parameter in your Dataflow called InputDate.
    2. Map it to the loop’s current value: @item()
  • Use in Dataflow – In Power Query, replace your hard-coded line: InputDate = "2025-08-01" with the parameter: InputDate = Text.From(InputDate)

 

 

Thanks,

Prashanth Are

MS Fabric community support

View solution in original post

2 REPLIES 2
v-prasare
Community Support
Community Support

Hi @tan_thiamhuat,

We would like to confirm if you've successfully resolved this issue or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.

 


Thanks,

Prashanth

MS fabric community support

v-prasare
Community Support
Community Support

Hi @tan_thiamhuat,

please follow below steps to pass dates dynamically:

 

  • Make your notebook return a JSON array of dates like: ["2025-08-01","2025-08-02","2025-08-03"]
  • In the ForEach Items box, read that output: @json(activity('Notebook_GenerateDates').output.result.exitValue)
  • Pass into Dataflow – Inside the ForEach, open the Dataflow activity → Parameters tab.
    1. Create a parameter in your Dataflow called InputDate.
    2. Map it to the loop’s current value: @item()
  • Use in Dataflow – In Power Query, replace your hard-coded line: InputDate = "2025-08-01" with the parameter: InputDate = Text.From(InputDate)

 

 

Thanks,

Prashanth Are

MS Fabric community support

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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