在 JSON 内格式化动态文件夹路径

formatting dynamic folder path within JSON

寻找基本代码格式帮助。

我想替换这段代码:

{
"name": "BlobConnect",
"properties": {
    "linkedServiceName": {
        "referenceName": "BlobConnect",
        "type": "LinkedServiceReference"
    },
    "type": "AzureBlob",
    "typeProperties": {
        "fileName": "",
        "folderPath": "timtesting"
    }
},
"type": "Microsoft.DataFactory/factories/datasets"}

无论当前日期是什么,都可以动态分配文件夹路径。另一位用户建议使用:

"folderPath": {
      "value": "@concat('test1/',
                formatDateTime(utcnow(),'yyyy'),'-', 
                formatDateTime(utcnow(),'MM'),'-',
                formatDateTime(utcnow(),'dd'))",
       "type": "Expression"}

但每次我用这个替换文件夹路径部分时,我都会继续出现格式错误。我不确定到底出了什么问题,几个格式化网站确认它不正确,但我不确定如何修复。谢谢!

{
"name": "BlobConnect",
"properties": {
    "linkedServiceName": {
        "referenceName": "BlobConnect",
        "type": "LinkedServiceReference"
    },
    "type": "AzureBlob",
    "typeProperties": {
        "fileName": "",
        "folderPath": {
            "value": "@concat('timtesting/', formatdatetime(utcnow(),'yyyy'),'-',formatdatetime(utcnow(),'MM'),'-',formatdatetime(utcnow(),'dd'))",
            "type": "Expression"
        }
    }
},
"type": "Microsoft.DataFactory/factories/datasets"

}