Publicado Mon, 10 Jun 2019 20:35:58 GMT por Seth Jaco Support Specialist
So I have a ticket on this right now but want to see if anyone else has done this. We have a client that emails a vendor when they have an issue with an invoice. Some vendor's have more than one email address. In the workflow I have a webservice that grabs all of the emails for that client and puts them in a variable. Some vendor's just have 1 email address while others have 3-5. I can see that the email addresses are being added to the variable, with semi colons separating each value (email@email.com; email1@email.com; email2@email.com;) etc... However when I assign the variable to the "To" box in an email step I get an error stating "No recipeints found in activity with definitionID". 

Does anyone have a trick to doing this without making a loop with several arithmatic rules?

Thanks
Publicado Tue, 11 Jun 2019 16:03:11 GMT por Seth Jaco Support Specialist
So I am guessing there is no easy way to do this? Seems odd that the global text variable cannot pass a string of text....
Publicado Tue, 11 Jun 2019 16:08:22 GMT por Gilles Sauvagnat Altexence
Hi

What I do is to set

GV_EmailContact1; GV_EmailContact2; GV_EmailContact3....

in the To field of the email task

Each WF variable is set with one email address.

Hope it can help

Regards

Gilles
Publicado Tue, 11 Jun 2019 16:11:48 GMT por Seth Jaco Support Specialist
That's the catch, I do not know how many email addresses each vendor may have. So I have a web service that performs a query against the table and pulls all of the email addresses for that one vendor and then puts it in a string with each value separated by a semi colon. 
Publicado Tue, 11 Jun 2019 21:56:00 GMT por Seth Jaco Support Specialist
I am just sending the email from the web service now using the MailMessage option in C. It is working fine this way.

Thanks

You must be signed in to post in this forum.