Lars Nielsen's Discoveries

July 7, 2011

Send E-mail to a SharePoint group in SharePoint Designer Workflow

Filed under: Development,SharePoint,Troubleshooting — Lars Nielsen @ 9:00 pm
Tags: ,

When creating a workflow in SharePoint Designer, of course you can use the send e-mail activity to send e-mail notifications to people during the workflow.  The dialog box for the send e-mail activity allows you to choose the recipient of the e-mail. You can either choose individual addresses from the address book, use one of the columns on the workflow item, or choose one of the SharePoint groups associated with the site.

I wanted to use this latter option (mailing a SharePoint group) to notify people when an item in a list had been flagged for deletion.  So I set up a special  group on the site called “Deleted Item Notification”, for people who would get that e-mail.   In my workflow, I set the e-mail activity to send mail to the group  Deleted Item Notification.  I put myself into the  Deleted Item Notification group to test the workflow, flagged an item for deletion and fired off the workflow.  Then I waited for my notification e-mail to arrive.  I waited and waited and.. nothing happened.   I checked the workflow history and it had errored out trying to send the e-mail.

I changed the workflow to e-mail my account directly and it worked fine.  So the problem was sending mail to a group.  It took a while to find a solution to this – the clue was in this post.

I had to change the group settings for the Deleted Item Notification group to allow everyone to see the membership of the group.  I also had to grant that group read access onto the site that was hosting the workflow – I think it would also have worked if I just allowed it to read the list to which my workflow was attached.  After those changes, the workflow sent e-mail correctly.

Advertisements

6 Comments »

  1. a handy one Lars! Hope you’re well!

    Comment by Adam Winsper — August 12, 2011 @ 3:01 pm

  2. Outstanding! You came up at the top of the list in Google and your fix worked on the first try. Thank you!

    Comment by Charlie — July 26, 2012 @ 11:57 am

  3. Thanks, saved me a load of time fiddling around trying to resolve that one!

    Comment by Bill — April 11, 2013 @ 11:03 am

  4. nice post dude!

    Comment by asdasd — November 20, 2013 @ 5:27 pm

  5. Thanks Dude !!

    Comment by Alance — May 15, 2014 @ 9:20 pm

  6. Thank you!

    Comment by RedK — March 2, 2016 @ 2:09 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: