Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a List with a column called "Add Recipients", Require that this column contains information: No Allow multiple selections: Yes Allow selection of: People and Groups Choose from: SharePoint Group ( members) Show field: User name

I have a simple workflw, with "Send a Message" Action; in the field TO there are some Sharepoint Users. In the CC field there is the "Workflow lookup", wirh the "source"=ADD RECIPIENTS column, show field User Name OR Email Addresses. In both cases when the ADD RECIPIEntS is empty, the workflow stops, with an error, and the email is not sent neither to the recipients that I wrote in the field TO. Instead I need that when the ADD RECIPIENTS is empty, the workflow sends email to the recipients in the field "TO", ignoring the fact that ADD RECIPIENTS IS empty. is it possible? otherwise, if the ADD recipients contains at least one user/group, the workflow is ok

share|improve this question
add comment

1 Answer

You need to build a variable that contains the 2 hard coded users (semi-colon delimited) and has a reference to the lookup field. Use this variable in your To field on the email action.

share|improve this answer
    
Do you mean that I have to build the local variable of the workflow, and the first step of the workflow is SET THE VARIABLE and i choose "create string" and I build: hardcodedemail@..;[%ADD RECIPIENT%]? BUT when I create the VAriable, I can choose only STRING and not "EMAIL ADDRESS", so that whne I use the variable in the TO field, the email sending doesn't work –  Maria Jan 15 '13 at 23:43
    
I mean you set a variable user1@my.com; user2@my.com; [lookup column] (as an email address). In your Email action, you do a Workflow Lookup for a User. In the modal, you select Workflow Variables and Parameters and select the variable from previous step. –  PirateEric Jan 16 '13 at 0:04
    
it doesn't work. It seems that the system doesn't convert the string in email addresses, even if I set the look up filed "RETURN FIELD AS email address" may b –  Maria Jan 16 '13 at 17:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.