Best way upload attachments to Microsoft Teams

Hi Everyone,

This is Sandy. I’m new to RPA and trying my best to learn this wonderful technology.

Can someone help me on how to upload attachments/documents to Microsoft Teams channel?.

Requirement: Read the emails from outlook and then save it to local folder. After that upload them to Teams channel.

I was able to read and save the attachments in local folder. Configured the connector on teams channel and was able to send messages using http request. But whenever I tried to access the file I’m getting following error.

bad payload received by generic incoming webhook.

I searched all over the internet to find a solution at my best , but no luck. Can someone guide me on this?