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 created a workflow in SharePoint Designer 2010, which sends an email when a SharePoint Server 2010 announcement is added or modified. It works as expected when the email only uses my address. However, it does not send mail at all when the email address uses an AD group or a SharePoint group.

I don't want to hard code the addresses. How can I get this to work?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

By default, we can't send the mail to all users, those are present in the group. If the SharePoint Group or Ad Group has the Group Email, then the email sent the mail to group email Id.

If you want the email individually means, just iterate the user and send the email to users.

share|improve this answer
    
Thanks for the info. When you say to iterate through the users in the group, is that possible within Designer, or would I need to create the workflow in Visual Studio? –  LCountee Dec 28 '11 at 17:59
    
Check the following link, social.msdn.microsoft.com/Forums/en/sharepointworkflow/thread/… . There is no OOB workflow activities available in SharePoint Designer to iterate Users from SPGroup. So we have to create a Custom activity to use in SharePoint Designer or we have to create a workflow in Visual Studio. –  Shantha Kumar Thambidurai Dec 28 '11 at 18:08
    
I think I understand. I hope you don't mind if I paraphrase for others' benefit: SharePoint workflows won't send mail to members of an AD group. If the SharePoint group has an email address, then mail will be sent to that address. Otherwise, you have to create a SharePoint group and populate it with users, and have the workflow send mail to that SharePoint group. –  LCountee Dec 28 '11 at 20:08
    
Also one quick clarification - in my testing, the workflow would not send email to a group that had a group email address. The only way I got it to work was creating a SharePoint group, adding the individual users, and sending to that SharePoint group. But, at least I didn't have to hard code the usernames in the workflow itself. –  LCountee Dec 28 '11 at 20:23
add comment

Can you check whether your group has atleast read permissions on the announcement list?

There is also an additional setting in the group settings which could cause this problem. Go to Site Settings -> People and groups -> Your group settings -> You need to select an option which says that the members in this group are accessible to everyone.

share|improve this answer
    
Group has contribute permissions. I changed the setting so everyone can view group members, but that did not resolve the problem. –  LCountee Dec 28 '11 at 19:30
    
Check out what Ashish Patel has provided a solution for a similar situation. - sharepoint.stackexchange.com/questions/25498/… –  Deepu Nair Jan 12 '12 at 4:13
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.