Hi,
For sending files to different recipients, please follow the below approach:
1) Create an excel manually and put all the file paths in one column, say, "FilePath" in column A and put the name of all respective recipients in column B, say "Recipient". This approach will be more dynamic approach rather than collection approach and no code changes are required after that.
2) Now create a process to read the data of the excel file by following the below steps:
a) Create Instance --> Open workbook --> Show --> Get Worksheet as Collection (say MailCollection)
3) Once you have the data in collection, use a loop stage and inside the loop stage, you can use Outlook VBO to send email to different recipients. In the "To" field of Outlook VBO, put [MailCollection.Recipient] and in the Attachments field, put [MailCollection.FilePath] and it will send the attachment to the concerned recipient.
------------------------------
Ritansh Jatwani
Consultant
EY
Asia/Kolkata
------------------------------