Save email attachment to SharePoint folder based on name
I would like to save email attachments to specific SharePoint folders based on the attachment name matching the SharePoint folder metadata.
The attachments I receive contain a code in the name of the attachment. I want each attachment saved to their corresponding folder in SharePoint based on that code. I'm using a document library with document sets (folders) in SharePoint that contain the matching metadata.
Attachment example: 1234 ABCD Name.docx
Sharepoint example: Report ID = 1234
I want the attachment to be saved in the folder with the matching "Report ID".