Add to collection error

studio

#1

I’m ussing “Add to collection” to add a MailMessage to new List. But I have an error

The workflow has validation errors. Review and resolve them first.

System.Activities.InvalidWorkflowException: The workflow has validation errors. Review and resolve them first. —> System.Activities.ValidationException: Compiler error(s) encountered processing expression “listEmailToGet”.
‘System.Collections.Generic.List(Of System.Net.Mail.MailMessage)’ cannot be converted to ‘System.Collections.Generic.ICollection(Of Object)’. Consider using ‘System.Collections.Generic.IEnumerable(Of Object)’ instead.

— End of inner exception stack trace —


#2

Try to change TypeArgument to MailMessage


#3

Wao. Very simple! Thank for your help @Uemoe