Thursday, August 29, 2013

Custom e-mail notification without SharePoint Designer: Three-state workflow

Someone asked me whether it is possible to send an e-mail notification with custom text after a request form (list item) is submitted to a list. These requests are personal so alerts are not an option. Of course it's easy to create a custom workflow with SharePoint Designer but what if you won't / can't use this tool? Well, the good old three-state workflow is your friend here! So how does this work?

  1. Create a Tasks list called "Request status"

  2. Change the Tasks list settings to secure the personal data

  3. Create a custom list called "Requests" to be able to fill out a request form
  4. Add a column of the type Choice with the name "Request status" and the following choices: "Submitted", "Being processed", "Completed". Default value is set to "Submitted".
  5. Be sure that the Three-state workflow feature is activated at site collection level.
  6. Add a standard workflow to the list Requests: select the Three-state workflow template.
  7. Configure the workflow settings
  8. Test
  9. Results

It's an amazing discovery!

Notice:
Since it's a three-state workflow it will only be completed when the choice field is set to the last state, in this case "Completed". Else the workflow will stay In progress.

8 comments:

  1. Can this be done on form library

    ReplyDelete
    Replies
    1. I guess it will be possible. The Workflow settings are also available on the form library. Be sure that the Site Collection Features 'Three-state workflow' is activated so you are able to choose this workflow template in the list.

      Delete
  2. The Text is so small and the screenshots are so blurry its near impossible to see which boxes you checked. Tried magnifying it to 200% and still cant read it.

    ReplyDelete
    Replies
    1. Hi Peralta,

      It may help if you view the web version of the site, and click on the screenshots to open them in the original -readable- format.

      Delete
  3. Is it possible to add fields to the message body?

    ReplyDelete
  4. can email be sent through approval workflow without sharepoint designer?

    ReplyDelete
    Replies
    1. Yes, just follow the Add a worklfow wizard

      Delete