
Hello. Please, I need help to properly set the Get Attachment from Outlook 365.
I'm trying to to automate a post on MS Teams every time I receive an e-mail with attachments. I want to post those attachment's contents into a MS Teams chat.
The automation is failing when it tries to Get the Attachments.
Thanks in advance.
This is where the error occurs in the flow:
This is my complete flow:
I found a solution. Weird, because I already tried such configuration for Get Attachment.
So, I created a new flow from scratch, like these and now I "print" the attachment contents into a Teams chat:
The Attachment Id param is:
In this step I used the following expression to write the file content as a string
decodeBase64(outputs('Get_Attachment_(V2)')?['body/contentBytes'])