Microsoft Flow将Outlook附件添加到VSTS工作项

时间:2018-06-07 14:18:42

标签: outlook azure-devops microsoft-flow azure-devops-rest-api

我试图将Outlook attachment上传到VSTS(使用Send an HTTP request to VSTS操作)。我还有其他一切工作。包括在故障单中添加附件,但是"已上传"文件什么都没有。我已尝试过表达式的每个组合来转换附件内容,没有运气。我确定我错过了一些中间步骤。

这里是"创建附件"步骤I用于在更新工作项之前上传图像。 ( Body 字段中的内容只是一次尝试。从链接的Outlook附件文档中,其类型为" byte"。) enter image description here

这是工作项目,带有附件,但没有文件内容。 enter image description here

欢迎任何帮助或建议。

1 个答案:

答案 0 :(得分:0)

您可以在此处查看Uploads an attachment的VSTS rest api:

POST https://{accountName}.visualstudio.com/{project}/_apis/wit/attachments?fileName={fileName}&uploadType={uploadType}&areaPath={areaPath}&api-version=4.1

如果要上传文本文件,api如下:

POST https://fabrikam.visualstudio.com/_apis/wit/attachments?fileName=textAsFileAttachment.txt&api-version=4.1

"User text content to upload"
相关问题