简体   繁体   English

如何在Azure Data Factory V2上的Json中为此REST_API编写文件路径

[英]How to write a file path in Json for this REST_API on Azure Data Factory V2

I am using Azure Data Factory V2 and I wonder whether anyone could help me writing the file path for this REST_API Activity that has a Body parameter that can only be written in JSON. 我正在使用Azure Data Factory V2,我想知道是否有人可以帮助我为此REST_API活动编写文件路径,该活动具有只能用JSON编写的Body参数。

This REST_API is part of a pipeline that must be triggered by an event. 该REST_API是必须由事件触发的管道的一部分。 As you can see below the Pipeline parameter "BlobName" requires a file path to be set dynamically. 如您在下面看到的,管道参数“ BlobName”要求动态设置文件路径。 This is a blob file that has to be stored in this container called "source-csv". 这是一个斑点文件,必须存储在名为“ source-csv”的此容器中。 I am trying to use source-csv\\@{triggerBody().filename} on the "Trigger Run Parameters" but it won't work. 我正在尝试在“触发器运行参数”上使用source-csv\\@{triggerBody().filename} ,但是它不起作用。 Can anyone help please? 有人可以帮忙吗?

如上所述,管道参数位于底部,触发参数位于右侧

The below is the solution: 以下是解决方案:

{"blobname": "source-csv/@{triggerBody().filename}"} {“ blobname”:“ source-csv / @ {triggerBody()。filename}”}

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM