Hi, we have a process that has been using System.Net.Mail.Mailmessage. Now we have started using UiPath.MicrosoftOffice365.Models.Office365Message in our process. The process that has issues have the following scenario:
- Process reads emails from Office365 and gives us Office365Message objects for each email.
- The process takes the pdfs that are in the email, saves them to drive and, merge them into one file.
- Then all the attachments are removed from the email, and the merged document is added as attachment to the mail.
- The email is then forwarded to the correct person.
We have been using Invoke Method to clear and add attachments earlier. In this example the email has 4 attachments. 3 of them are pdfs and one excel file. When using the invoke method the Attachments are cleared (and also added later)
But there seem to be a “StandardAttachmentNames” that are still there.
When the mail is sent, the original attachments are still there. The added one is not.
So the question is how to clear and add attachments to a Office365Message?