0
votes

Is there a way/function to fetch complete folder path of a pipeline in Azure data factory?

If I have a data factory job like in str:

**datafactory-name/root-folder/etl-pipeline**

I can use @pipeline().Pipeline function to fetch and store pipeline name in a variable which in this case would be etl-pipeline.

Is there a similar function to retrieve the name of folder in which the pipeline is? I would like to store root-folder also in a variable

Please help.

1

1 Answers

0
votes

Don't think that there is any direct way to achieve this, however curious to know the use case why you would need to capture the name of the pipeline folder in a variable while executing it and why not parameterize the pipeline which would let you pass the name of the pipeline folder whenever you invoke the pipeline - this way you could still achieve what you are intending to do with pipeline parameter instead of a runtime initialized variable.