The purpous is to send a mail to the members of the GROUP.
I succeeded, with a condition, to filter both datatables, find the matching group and get the email into a variable.
But it only sends a mail to the first person found in the group, I’d like to send the mail to all members of the group.
Am I clear enough ? So how can I loop until all members are found and the mails sent ?
Thanks
Assign activity:
left side: dtEmailLists (Datatype: DataTable)
right side: dt2.Clone (this one with group and Mail column)
Assign Activity:
left side: dtEmailLists (Var from above)
rigth side:
(From d in dt2.AsEnumerable
Group d by k=d("GROUP").toString.Trim into grp=Group
let el = String.Join(";", grp.Select(Function (x) x("MAIL").toString.Trim))
let ra = new Object(){k, el}
Select dtEmailLists.Rows.Add(ra)).CopyToDataTable