Hi, is it possible to send a teams chat message with an attachment through power automate? I found this (Custom Action - Post Email Attachment to Teams | DamoBird365) blog post that uses Graph API, but it looks like it only works for channel messages.
Edit: Also, is there a way to do this with a message to yourself/through Flow Bot? Basically I want to notify myself though teams when my flow runs.
I do not believe what you want to do is possible. The main reason is that files added in chats are stored in OneDrive in these folders:
What you would do instead is save the file to OneDrive, create a sharing link, and include that in the chat message instead. Looking at the post you referenced, it looks like that is doing almost the same thing but saving the file in SharePoint instead, which is a good option if you want everyone who has access to that location in SharePoint to see the file.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.