Hi!
Yes you are correct, I'm using PowerAutomate, but it seems that the connector its the same.
I realized I was not using the "Get Attachment (V2)" action, and now I'm able to successfully upload the attachment to DEVOPs.
I can access the file uploaded referenced in the url field.
Now I'm struggling with a "404 Page not found" error when PATCHing the workitem, and I'm sure I have the correct workitem id.
Any thoughts on what it might be?
Raw Inputs:
{
"host" : {
"connectionReferenceName" : "shared_visualstudioteamservices" ,
"operationId" : "HttpRequest"
},
"parameters" : {
"account" : "xxxxx" ,
"parameters/Method" : "PATCH" ,
"parameters/Uri" : "https://dev.azure.com/xxxxxx/Gestão%20de%20Reclamações/_apis/wit/workitems/154296&api-version=7.2-preview" ,
"parameters/Headers" : {
"Content-Type" : "application/json-patch+json"
},
"parameters/Body" : "[\n {\n \"op\": \"add\",\n \"path\": \"/relations/-\",\n \"value\": {\n \"rel\": \"AttachedFile\",\n \"url\": \"https://dev.azure.com/casteamservicesvso/77dfb1f7-fbc1-48d6-88b4-ae5d7e35b6f9/_apis/wit/attachments/cc154305-07a8-45f7-9e20-7de94585a64b?fileName=Condicoes%20Gerais.pdf\",\n \"attributes\": {\n \"comment\": \"Attachments\"\n }\n }\n }\n]" ,
"parameters/IsBase64" : false
}
}
Thanks.
Miguel