So, im building this flow, where i have a mail with several attachments. These attachments needs to be saved in a sharepoint folder structure, based on the attachement's name. The attachment names are the names of our employees. The folder structure is build like this, on the first level we have folders names A,B,C,D.....X. Beneath each of these there are one folder for each employee, where the foldername are the persons full name.
So i want the attachment called "John Doe.pdf" to be saved in this subfolder: "/J/John Doe/". The attachment "Sarah John.pdf" to be saved in this subfolder: /S/Sarah John/". All these folders allready exists.
To accomplish this, i have tried to parse the filename for each attachment in the mail using the Substring() expression. This is where it fails, as i cannot get MSFlow to give me the attachment names as a type string i can work with, the "Attachment Name" is an object.
As seen here, i want to be able to use RegEx's to be able to tell flow, where to put each file, in the folder path.
Anyknow know if this is at all possible ?
