ADF Pass JSON from IF Condition to Execute Pipeline

Jay 561 Reputation points
2021-06-09T13:52:40.32+00:00

I have a job moving xml files from an ftp to on-prem fileserve and I must check first if there are any files to collect.

To do this I'm using a If Statement and because my pipeline has a For Each I can't put this in an If so have put it into another pipeline.

103915-image.png

103877-image.png

103840-image.png

My question is I'm checking metadata twice and it works OK but is it possible to pass the JSON result from the first metdata above to the execute pipeline so I can remove the second Metadata task and then the filters work on output from First Metadata select?

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

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2021-06-10T11:20:41.707+00:00

    Hello @Jay ,

    Thanks for the question and using MS Q&A platform.

    You can pass parent pipeline using the GetMetaData output property values to Child pipeline.

    To do the same you need to create a parameter in child pipeline to receive data from parent pipeline.

    For example, in below example I'm passing Parent pipeline GetMetaData activity output property Exists to child pipeline

    Master Pipeline:

    104208-parentpipeline.gif

    Child Pipeline:

    104209-childpipeline.gif

    Hope this helps. Do let us know if you any further queries.

    ---------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


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.