【问题标题】:Azure Data Factory Dynamic Content with base64 Conversion使用 base64 转换的 Azure 数据工厂动态内容
【发布时间】:2020-04-25 14:40:24
【问题描述】:

我正在从 Azure 数据工厂进行 HTTP 触发的 Azure 函数调用。我无法使函数活动的 HTTP 主体对 HTTP POST 正确。这是 HTTP 正文

{ "filename": "@{item().BatchId}.json", "filecontent": @{base64(item().BatchId)} }

我传递了两件事:文件名和文件内容,在将其发送到函数之前需要对其进行 base64 编码。 base64 函数不适用于 BatchId 的动态值,但文件名在上面的示例中工作正常。

【问题讨论】:

    标签: azure azure-data-factory azure-data-factory-2 dynamic-expression


    【解决方案1】:

    它不起作用,因为 BatchId 不是字符串。以下线路开始工作 -

    { "filename": "@{item().BatchId}.json", containername:"insightsfiles", "filecontent": "@{base64(string(item().BatchId)) }"}

    【讨论】:

      猜你喜欢
      • 2019-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-26
      • 2022-09-29
      • 2018-10-29
      • 1970-01-01
      相关资源
      最近更新 更多