获取数据工厂中的文件名

时间:2020-09-02 00:10:45

标签: azure-data-factory

我正在使用Get Metada活动,我需要从活动输出中获取文件名:

输出活动

Output
{
    "childItems": [
        {
            "name": "FILENAME.mdb",
            "type": "File"
        }
    ],
    "effectiveIntegrationRuntime": "xxxxx",
    "executionDuration": 0,
    "durationInQueue": {
        "integrationRuntimeQueue": 5
    },
    "billingReference": {
        "activityType": "PipelineActivity",
        "billableDuration": [
            {
                "meterType": "SelfhostedIR",
                "duration": 0.016666666666666666,
                "unit": "Hours"
            }
        ]
    }
}

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

使用此表达式:

@activity('Get Metadata1').output.childItems[0].name

我的测试管道:

KeyStore Explorer

“设置变量1”的输出:

enter image description here