6

I have a workflow set up to send an email to a set group of people once an item in a list is created.

There are ~40 people in the distribution list. I want to use a distribution list so I don't have to manually add/remove individuals from the email in the event that someone leaves/joins the company.

Throughout testing I configured the workflow to only send the email to me to reduce noise. Now that we're trying to push out the list to the entire organization, we've began testing it with the distribution list we plan to use in production.

This morning I received the email (I was added to the email individually whereas the rest of the audience is a part of the distribution list), however no one on the distribution list received the email. Is there something I must configure to allow for emails to be sent to a distribution list, or is that not supported in SharePoint workflow?

I'm using SharePoint Online through Office 365, and it's a 2010 workflow.

Also worth noting - The distribution list turns into a strange string of characters after being added. See below:

c:0+.c|ad|s-1-5-21-1851826741-1401831065-3463747319-8203419

0

That character string is indicative of SPOnline relating to an existing Active Directory group.

  1. Your Active Directory group will need to be "a member" of a SharePoint group - this is just like adding a person using the people picker.
  2. Be sure to add them to the SP group that relates to their level of access (Visitors, Members, etc).
  3. Check to see if the group email is enabled in Exchange, and using a global vs local AD group.

Good luck!

0

Revisiting something today in an old workflow I set up a while ago, I figured out how to send emails to a distribution list. Based on the example image, the "PO Type" field will determine what email addresses are added to the email that is being sent out once a list item has been created. If PO type equals "All" then set variable [variable name, as a string] to [email address of DL]. Go to the email you want to send and add "Workflow lookup for a user..." and set the data source to "Workflow Variables and Parameters", and the field from source should be the variable you created. Add every possible variable to the email recipients, and the conditional statement will determine what variables are set. If the variable is not set, no email address is added. enter image description here

-3

First you need to convert the strange characters c:0+.c|ad|s-1-5-21-1851826741-1401831065-3463747319-8203419 to get the readable account name. For this you need to create aspx page and save it to layouts folder. Call that page in your workflow .

pass the group name in string groupNameEncoded

            private string GetAccountName(string groupNameEncoded )
            {
                string returnStringClaimDecoded = string.Emtpy;
                using (new SPMonitoredScope("started...."))
                {
                    try
                    {
                    SPClaimProviderManager spClaimProviderManager = SPClaimProviderManager.Local;
                        if (spClaimProviderManager != null)
                        {

                            if (SPClaimProviderManager.IsEncodedClaim(groupNameEncoded))
                            {
                            returnStringClaimDecoded =  spClaimProviderManager.ConvertClaimToIdentifier(groupNameEncoded) ;
                            }



                        }
                    }
                    catch (Exception ex)
                    {
                    // just return the original username.
                    }
                }
                return returnStringClaimDecoded;
            }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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