Forum Discussion
MausLyon
Dec 18, 2019Copper Contributor
naming convention in saved email sent to teams channels
when I send an email to a specific channel, TEAMS saves the email and each attachment (individually) as files in the "Email Messages " directory on SharePoint.
As far as I can see the name of the save email is in the format::
<subject of the email>.eml
while attachments (if present - are saved using the actual attachment filename
MY questons are:
A) can I change the naming used by TEAMS? e.g something sort of [YYYY-MM-DD] - <subject of the mail>. eml ? where [YYYY-MM-DD] is the timestamp of the email so that multiple replies on the same subject are easy to manipulate.
B) If it's not possible directly in TEAMS, can I use an automated FLOW? if yes, whats the trigger? I could find "when OUTLOOK receives an email" but does "when a channel receives an email" exist?
- Na. Because the email is outside your tenant you can not access it with flow.
However you could put a when a file is added in a folder SharePoint trigger that points to the email message folder. Then you can act on and rename the files as they come in to SharePoint.
The problem might be though when the flow renames the file if it will break the posted message file links. You could test by manually renaming the files and then going to the message in the channel and testing the links.- MausLyonCopper Contributor
Thanks for the reply, I tried to manually rename both the email and the attachments and no link was broken. I assume that the connections are implemented using some sort of internal pointer rather than the file name. So yes your solution seems to work, I'll get a flow that, when a file is added to my email folder, it will rename it accordingly and it should work fine
M