Passing folder name from Pipeline to Dataflow

Krishnamohan Nadimpalli 406 Reputation points
2022-12-26T12:39:33.147+00:00

Hi

I have a folder structure in the following way

Container 1 -
--Folder 1
--file1.json
--file2.json
--Folder 2
--file3.json
--file4.json

I want to process each folder in my dataflow. I am looping through container for folders through Metadata and using foreach activity as below

274081-image.png

To loop I am using the following expression for foreach activity

@activity('Get Metadata1').output.childItems

Insider foreach I have a dataflow

Source dataset in dataflow I have given in the following manner

274054-image.png

Now How to pass folder name into dataflow so that it would take one folder at a time. What should be the values in the following diagram? And why is it asking for linked services parameters?

274074-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,633 questions
{count} votes

Accepted answer
  1. HimanshuSinha-msft 19,491 Reputation points Microsoft Employee Moderator
    2022-12-27T22:14:20.053+00:00

    Hello @Krishnamohan Nadimpalli ,
    Thanks for the question and using MS Q&A platform.
    As we understand the ask here is how to pass the parameter to the dataflow , please do let us know if its not accurate.
    You will have to paramterized the Source dataset . First create the parameter and then add that to the path , as shown below .

    274338-image.png
    274308-image.png

    274309-image.png

    Once you do that , please click on the Dataflow ( inside for each ) and you will see an new parameter , as shown below .

    274413-image.png

    I did tested the pipeline with the above setting that it worked fine .

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.