April 26, 2012

Workflow email to multiple recipients

I have a Nintex workflow which has a task to email multiple recipients.  In Workflow 2007 I used a single line text variable to store the user accounts then dumped them into the "To" box and went along my merry way.  I've since upgraded the workflow to 2010 and it continued to work until I made a modification to the email task.  Now I get the following error message:

Failed to send notification. Cannot get the full name or e-mail address of user "x".  (I think x is the user's sharepoint ID number).


If I dump the variable to the workflow history I see the following:

x;#user display name;#x;#user display name


I figured a key to the solution was to use the "Person or Group" variable, but no difference.  After a quick dialog with Nintex Technical Support I did use the new variable, but the trick is to use the elipse (...) button to specify that I want to store the login or email address in the variable.



This is mighty helpful since I used to have a snippet saved with an LDAP query to get display names.  Now it's all right there in one handy workflow action item!