Join 2 list email message

I have a process in which the input is 2 mailing lists, each with a different subject. I need to merge the two into a single mailing list.

1 Like

Hi @Marisa_Ontiveros1

You can use the Merge Collections activity to merge the Two lists to one.

In the Merge collections activity, pass the List1 in Collection field and List2 in Second Collection, go to properties and create a variable in the Merged collection field.

Hope it helps!!

HI,

Can you try either of the following expression?

Remove duplicates

listMail1.Union(listMail2).ToList()

OR

Keep duplicates

listMail1.Concat(listMail2).ToList()

Regards,

1 Like

@Marisa_Ontiveros1 ,

Try
mergedList.Distinct().ToList()

Thanks

It works!!! perfect!!! Thank you very much!!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.