-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Logic Apps: Unable to Attach File to Azure DevOps Work Item via API - "Body parameters are not specified." #1236
Comments
This issue is stale because it has been open for 45 days with no activity. |
Same issue here, here is the input send to the "upload attachment" task, |
Hello @pr081578 Could you share the way you upload the file to AzDo? I finally found that the body should be simply set with the output values of the "retrieve attachments" task, i though that you looked at this post that says to put the "contentBytes" between binary() brackets for the upload task, it's not necessary and causes this problem. Now my upload task looks like:
|
This issue is stale because it has been open for 45 days with no activity. |
Describe the Bug with repro steps
Set Up Logic App:
Add an action to retrieve an email attachment (Get Attachment from Office 365, for example).
Ensure the attachment content is available as a base64 string.
Add a Compose Action (Optional):
Use the expression base64ToBinary() to decode the attachment content into binary format:
base64ToBinary(outputs('Get_Attachment')?['body'])
Add HTTP Action to Upload the Attachment:
Method: POST
URI:
https://dev.azure.com/{organization}/{project}/_apis/wit/attachments?fileName={fileName}&api-version=6.0
Headers:
{
"Content-Type": "application/octet-stream",
"Authorization": "Bearer {PersonalAccessToken}"
}
Body: Pass the binary output from the Compose step or the base64 content directly.
Run the Logic App:
Trigger the Logic App to upload an attachment to Azure DevOps.
Observe the response from the Azure DevOps API.
What type of Logic App Is this happening in?
Consumption (Portal)
Which operating system are you using?
MacOS
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
Screenshots or Videos
No response
Browser
Safari
Additional context
No response
The text was updated successfully, but these errors were encountered: