ddpadil
(Dilip)
July 10, 2017, 5:26pm
4
Give a try.
Use assign activity where LHS is array of string variable which holds all the files.
Here is for the mail part.
attaching multiple files in a mail
In a list i have the paths of all the files to be attached but I dont know how to attach all of those files to the same email.
What version of Uipath Studio you are using?
Well mine was 2016.2.6274.
You can Get all files from Directory by using System.IO.Directory.GetFiles("Attachments") or Directory.GetFiles("Attachments")(If System.IO Namespace is already imported).
Basic Flow:
1. String[ ] fileNames_to_be_attache= Directory.GetFiles("Attachments")
2. System.Net.Mail.Message mail = new MailMessage()
3. For Each with type argument String.
foreach item in fileNames_to_be_attache{
System.Net.Mail.Attachement a…