0

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?

2 Answers 2

2

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.

4
  • 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?
    – LFurness
    Dec 28, 2011 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. Dec 28, 2011 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.
    – LFurness
    Dec 28, 2011 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.
    – LFurness
    Dec 28, 2011 at 20:23
1

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.

2
  • Group has contribute permissions. I changed the setting so everyone can view group members, but that did not resolve the problem.
    – LFurness
    Dec 28, 2011 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, 2012 at 4:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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