Hi all,
I currently have a flow which automatically saves emails passing through a mailbox onto Sharepoint.
If the email contains an attachment, it will save the attachment and upload it onto Sharepoint as per the naming of the attachment name. (A)
If the email do not contain any attachment, it will save the email content as an eml file and upload it onto Sharepoint. The name of the eml file will be the Subject of the email. (B)
A does not have any problems as 99.99% of the time the name of the attachments received are always unique and different.
However, there will be certain times where B will have problems especially when the sender reply to the email thread (as the subject will become "RE: abcdefg"). For example, the first eml file saved will be "Subject". When the sender first reply to the thread, the eml file saved will be "RE: Subject". However, when the sender subsequently replies to the thread, the eml file saved will still be "RE: Subject". This naming convention REPLACES the previous eml files saved since the name of the eml file is no longer unique.
Does anyone have any suggestion on how I can possibly make the naming unique while at the same time retaining the aspect of my flow saving the attachment (A) / content (B) as something that is recognizable (ie. attachment name). Below is a screenshot of my current flow for B. If no = if no attachments.