简体   繁体   中英

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.

This REST_API is part of a pipeline that must be triggered by an event. As you can see below the Pipeline parameter "BlobName" requires a file path to be set dynamically. This is a blob file that has to be stored in this container called "source-csv". I am trying to use source-csv\\@{triggerBody().filename} on the "Trigger Run Parameters" but it won't work. Can anyone help please?

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

The below is the solution:

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

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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