Thank you for answering!
I think the issue is with the upload of the attachments, even though I see a 201 created result:
Request:
{
"host": {
"connectionReferenceName": "shared_visualstudioteamservices",
"operationId": "HttpRequest"
},
"parameters": {
"account": "xxxx",
"parameters/Method": "POST",
"parameters/Uri": "https://dev.azure.com/xxxx/Gestão%20de%20Reclamações/_apis/wit/attachments?fileName=exemplo_extrato_cc_66.pdf&uploadType=Simple&api-version=7.2-preview",
"parameters/Headers": {
"Content-Type": "application/pdf"
},
"parameters/Body": null,
"parameters/IsBase64": true
}
}
Response:
{
"statusCode": 201,
"headers": {
"Pragma": "no-cache",
....
....
....
"Expires": "-1"
},
"body": {
"id": "bf0e589d-8c07-48e4-bc4e-da523ec02ffd",
"url": "https://dev.azure.com/xxxxxxxx/77dfb1f7-fbc1-48d6-88b4-ae5d7e35b6f9/_apis/wit/attachments/bf0e589d-8c07-48e4-bc4e-da523ec02ffd?fileName=exemplo_extrato_cc_66.pdf"
}
}
(I cant access the PDF returned in the "url" parameter)
I have this in the Send HTTP to DEVOPS Action to add the attachments:
{
"inputs": {
"host": {
"connectionName": "shared_visualstudioteamservices",
"operationId": "HttpRequest",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_visualstudioteamservices"
},
"parameters": {
"account": "xxxxxx",
"parameters/Method": "POST",
"parameters/Uri": "https://dev.azure.com/xxxxxx/Gestão%20de%20Reclamações/_apis/wit/attachments?fileName=@{items('Apply_to_each_2')?['name']}&uploadType=Simple&api-version=7.2-preview",
"parameters/Headers": {
"Content-Type": "@{items('Apply_to_each_2')?['contentType']}"
},
"parameters/Body": "@items('Apply_to_each_2')?['contentBytes']",
"parameters/IsBase64": true
},
"authentication": "@parameters('$authentication')"
},
"metadata": {
"operationMetadataId": "557ad5ce-9834-4189-b6b3-909f1ffa6d65"
}
}