Hey there,
I’m using MS Forms to create and update Asana tasks, with the integration configured via Power Automate. However, I’m encountering an issue when trying to upload an attachment from MS Forms to an Asana task using the upload attachment the endpoint: https://app.asana.com/api/1.0/attachments
The attachments either upload as a link when using ‘external’ as the subtype or as an actual file that is unreadable/unsupported when using ‘asana’ as the subtype.
Has anyone successfully uploaded an actual file using the external method? Here’s the code in my HTTP request for reference:
So, the first one looks correct, but when opening the file, it says it’s not supported (this happens with Excel or image files). The second one is actually the hyperlink to where the file is hosted, and it works, but it becomes uncomfortable for the user when files like images are uploaded.
Ideally, I’d like to get it uploaded as an actual file.
Hi @Andrew_Pegram
Looks like you were able to solve this issue. Are you encoding the file in any way? How does it get attached to the task? As the file as such? Or as a link?
I literally fixed it while posting the question! @Phil_Seeman , @Andrew_Pegram, I removed the quotes around the content file as per Andrew’s post. Additionally, I encoded it using the base64ToBinary function in the expression. The final expression looks like this: *base64ToBinary(body('Attachment_Get_file_content')?['$content'])*