How to get the file type of outlook Mail attachment?

Hello Everyone,
My Objective is to check for the mail attachment in outlook and if attachment is there then identify the file type and move to specific folder.

Any Docs Reference will also be helpful

With Regards
Rohan Goswami

Hi,

Hope the following helps you.

Main.xaml (10.2 KB)

Regards,

Hi @Rohan_Goswami1

Step 1: Use Save Attachments activity to save all attachments of email to a temp folder.
Step 2: Use full file path as parameter to create a FileInfo object, and get each file’s extension.
Step 3: Switch activity to identify the file type and move to specific folder.


Below is the sample.
GetAttachments.xaml (7.6 KB)

Thanks @Yoichi
This is Pretty Helpful. Though I will modify according to the requirements

With Regards,
Rohan Goswami

Thanks
This was helpful.

With Regards
Rohan Goswami

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.