Share via

Data flow visual expression builder how to create date hierarchy path

sachin gupta 376 Reputation points
2021-09-17T17:27:03.383+00:00

@ShaikMaheer-MSFT @Saurabh Sharma ...

In Azure Data Flow, I am trying to build an expression for Source from where I will get the file. The source path is a blob container in Azure Data Lake which is given below:

GA/2021/09/16/abc/abcset1.csv

The date hierarchy which is given above gets created dynamically for the date on which the pipeline executes.

I am not able to create this directory path in the Data Flow visual expression builder wildpath source option. Can someone please help me to know how this path can be created?

Thanks

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Answer accepted by question author

HimanshuSinha 19,637 Reputation points Microsoft Employee Moderator
2021-09-20T19:06:08.22+00:00

Hello @sachin gupta ,

Thanks for the ask and using Microsoft Q&A platform . The below expression should help .

@markus.bohland@hotmail.de (formatDateTime(pipeline().TriggerTime,'yyyy'),'/',formatDateTime(pipeline().TriggerTime,'MM'),'/',formatDateTime(pipeline().TriggerTime,'dd'),'/abc').

Please do let me know how it goes .
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][50]

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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