title: Azure Data Factory V2 Dataset Dynamic Folder
body: <p>In Azure Data Factory (V1) I was able to create a slide and store the output to a specific folder (i.e. {Year}/{Month}/{Day}.  See code below. </p>
  
  <p>How do you create the same type of slice in Azure Data Factory V2?  I did find that you have to create a paramater.  Yes, I was unable to figure out how to pass the parameter.  </p>
  
  <pre><code> "folderPath": "@{dataset().path}",
  "parameters": {
    "path": {
      "type": "String"
  </code></pre>
  
  <p>Here is original ADF V1 code. </p>
  
  <pre><code>{
      "name": "EMS_EMSActivations_L1_Snapshot",
      "properties": {
          "published": false,
          "type": "AzureDataLakeStore",
          "linkedServiceName": "SalesIntelligence_ADLS_LS",
          "typeProperties": {
              "fileName": "EMS.FACT_EMSActivations_WTA.tsv",
              "folderPath": "/Snapshots/EMS/FACT_EMSActivations_WTA/{Year}/{Month}/{Day}",
              "format": {
                  "type": "TextFormat",
                  "rowDelimiter": "␀",
                  "columnDelimiter": "\t",
                  "nullValue": "#NULL#",
                  "quoteChar": "\""
              },
              "partitionedBy": [
                  {
                      "name": "Year",
                      "value": {
                          "type": "DateTime",
                          "date": "SliceStart",
                          "format": "yyyy"
                      }
                  },
                  {
                      "name": "Month",
                      "value": {
                          "type": "DateTime",
                          "date": "SliceStart",
                          "format": "MM"
                      }
                  },
                  {
                      "name": "Day",
                      "value": {
                          "type": "DateTime",
                          "date": "SliceStart",
                          "format": "dd"
                      }
                  },
                  {
                      "name": "Hour",
                      "value": {
                          "type": "DateTime",
                          "date": "SliceStart",
                          "format": "HH"
                      }
                  },
                  {
                      "name": "Minute",
                      "value": {
                          "type": "DateTime",
                          "date": "SliceStart",
                          "format": "mm"
                      }
                  }
              ]
          },
          "availability": {
              "frequency": "Day",
              "interval": 1
          }
      }
  }
  </code></pre>