cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wiss
Frequent Visitor

Posting the gmail email attachment on teams channel

Hello. I have successfully built the flow to post specific emails as a message on teams. But how can i attach the excel or pdfs attachments in the same post ? I have tried adding the "attachment" as dynamic content but it didn't work. 

Here's a screenshot of my flow. Please help.

s.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @wiss ,

 

You cannot do that in out of box action 'Post message in a chat or channel'.

Luckily, graph api provides a rest api to send channel message with attachments.

https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http#example-4...

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @wiss ,

 

You cannot do that in out of box action 'Post message in a chat or channel'.

Luckily, graph api provides a rest api to send channel message with attachments.

https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http#example-4...

 

Best Regards,

Wearsky

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,598)