Forum Discussion
emails with attachments to channel are wrapped in additional EML
Hi Russ0203
I found your post while looking for a solution to a different problem (emails to teams channel create duplicate sharepoint eml files, but only show one post in the teams channel).
So I haven't had your problem and fixed it but I do have a suggestion for a different solution.
Rather than using the monitoring for a new post to the channel. You could try every hour running a flow that looks at all the most recent channel posts and applying your business logic that way:
Then to solve your actual problem, I see two options.
Option 1 - look at the JSON that gets returned when you get the post, and see if you can figure out some logic to get to the burried attachments that way.
Option 2 - all emails to a TEAMS channel and their attachments are saved into the SharePoint site for the TEAM > Documents library > Channel folder > EmailMessages_<month>_<year> folder e.g. EmailMessages_11_2023
So you could just pick up the attachments as PDF or XLSX or whatever from there directly.
Hope this helps.