I am trying to send multiple attachments using the Send Exchange Mail Message activity in UiPath. However, I am unsure whether I can use an array (arr) to pass the attachment paths.
I would like to know if it’s possible to send multiple attachments by using an array, and if so, how I should configure it correctly in the Send Exchange Mail Message activity.
Hi @Murthy_Chethana ,
Assign
Filescollection(String Array) = Directory.Getfiles(folderpath)
Now in the properties of Send Exchange Mail Message activity
add this variable in AttachmentsCollection.
Are there any limitations for the attachments from different locations ? if yes try this filesFolder1 = Directory.GetFiles(“C:\FolderPath1”)
filesFolder2 = Directory.GetFiles(“D:\FolderPath2”)
filesFolder3 = Directory.GetFiles(“E:\FolderPath3”)
Then you can concat them allFiles = filesFolder1.Concat(filesFolder2).Concat(filesFolder3).ToArray()