Save Outlook Mail in local after removing all attachments

Description

Hi Everyone,

I want to save every mail in my local drive in .eml format after removing every attachment present in the mail.
Want some help on that whether we have some existing property to remove attachment in the mail before saving the mail or how to do that.

Thanks in advance

Link

Date

2024-08-08

Related UiPath products

Automation Suite
Community
Studio
StudioX

@Binod_Kumar_Biswal

Try this

Invoke Code:

mailMessage.Attachments.Clear() ' Clears the attachments from the email

"C:\Users\lrtetala\Downloads\"+currentMailMessage.Subject+".eml"

Regards,