I have a data set that resides under a folder path where the date is dynamic (e.g. rootfolder/subfolder/yyyy/mm/dd/subfolder/subfolder), and I am trying to pull it with a copy activity. So far I cannot get Data Factory to recognize that my date is dynamic...
This is the code that I have tried so far:
["rootfolder/subfolder/subfolder/subfolder/subfoler/@{formatDateTime(utcnow(),'yyyy')}/@{formatDateTime(utcnow(),'MM')}/@{formatDateTime(utcnow(),'dd')}/subfolder/file"]
@
symbol is for the start of the expression only, you don't need to repeat it throughout the expression. The curly braces{
are for what's called string interpolation, basically when you want to embed this expression within a string. See here for a similar answer recently. - wBob.../subfoler/{Year}/{Month}{Day}/subfolder/file
. - Kiril1512