Automatically Sending Notifications to Reviewers

Automatically Sending Notifications to Reviewers

  • Comments 24

When a Review Activity becomes ‘In Progress’ in a given Change Request, you probably want to notify each of the Reviewers in the Review Activity that they need to review and approve/reject the Change Request.  This is fairly easy to do and in this blog post I’ll show you how.

First we need to create a notification template and then we need to configure the Activity Event Workflow to send the notifications using the notification template at the appropriate time.

To create the notification template, just follow the same general pattern as described in this blog post:

http://blogs.technet.com/b/servicemanager/archive/2010/01/28/inserting-links-to-review-manual-activities-in-notifications.aspx

or this one:

http://blogs.technet.com/b/servicemanager/archive/2009/09/28/creating-notification-templates-in-system-center-service-manager.aspx

Here are step by step instructions to create the notification template:

  1. Go to the Administration workspace to the Notifications\Templates view.
  2. Click Create Template in the task pane on the right.
  3. Enter a name for the template such as ‘Notify Reviewers When to Vote on Review Activity’
  4. Select the Review Activity class.
  5. Optionally choose a different management pack.
  6. Click Next.
  7. Check the Send as HTML checkbox.  Enter a subject, optionally substituting values using the Insert… button.
  8. Enter the body of the message using the Insert… button as appropriate.  One thing you will probably want to do is put in the hyperlink to the analyst portal and  pass the ID of the review activity in the URL QueryString.  It should look something like this.
  9. image
  10. A couple of notes on this:  Make sure you use the Work Item ID not the ‘Unknown’ (aka System.Entity) ID in the end of the QueryString there.  Of course you will want to use your own server name and port number in your template not ‘smdc.contoso.com:444’.
  11. Click Next
  12. Click Create
  13. Click Close

Now we need to configure the workflow to trigger at the appropriate time and use this notification template.

  1. First go to the Administration workspace to the Workflows\Configuration view.
  2. Select the Activity Event Workflow and click Configure Workflow Rules in the task pane on the right.
  3. When prompted for which class of activities to configure to select the Review Activity class and click OK.
  4. Click the Add… button.
  5. Click Next on the General screen
  6. Specify a name for your workflow
  7. Choose ‘When a Review Activity is updated’ from the Check for events: drop down.  Click Next.
  8. On the Criteria page of the wizard choose on the Changed From tab to trigger when the Status - Does Not Equal - In Progress.  On the Changed To tab choose when Status – Equals – In Progress.  Click Next.
  9. On the Apply Template page, uncheck the box to apply a template.  Click Next.
  10. On the Notifications page, select Reviewers from the drop down and select the notification template created above from the drop down and click Add.  Click Next.
  11. Click Create.
  12. Click Close
  13. Click OK.

I’ve also provided the MP here:

http://cid-17faa48294add53f.office.live.com/self.aspx/.Public/Examples/Microsoft.Demo.NotifyReviewers.xml 

All you need to do is import the MP and change the server name in the notification template (and maybe make the template more to your liking).

Leave a Comment
  • Please add 6 and 3 and type the answer here:
  • Post
  • Hi Travis, the key HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ System Center Service Manager Exchange connector,   is created in the server service manager or in the server of exchange, thanks.

  • @ecr25 - Please create that key on the SCSM management server where the workflows are running.

  • Travis ok thank you very much for your reply, one more question I need to know if the Exchange Connector 3.0RC supports  SCSM 2012 SP1 beta, I'm new in SCSM 2012, thanks Travis.

  • @ecr25 - I haven't specifically tested it yet, but yes it should work.

  • Hi,

    We're building Service Request that contains several different activities and we would like to pass over the "Description" from SR into the Activity description? What syntax can I use in the Activity templates?

    For example, a manager gets a Review Activity but he/she has nothing in the description to identify what he/she is approving w/o having to locate the SR.

  • Hello Travis, have helped me answers thank you very much, but still give me the wrong connector connects but with errors, any suggestions about Travis can give me some clue how to solve this problem.

  • Hi Travis

    Is it possible to have different email templates for different RAs?  In my change process we several change templates, and within each template have several RAs, one for a Peer Review, one for Change Management QA, and then another for the approvers of the change.  I want to have different email templates for each of these activities, and different wording for the templates (like the word Immediate in the subject if the RA the change is built off of the Immediate Change template.  

    When I create the workflow I can not allocate the workflow to a specific RA in a Specific Change Template.  Is this possible?

  • @Amanda - Yes, all of that is possible.  You just need to have some indication on your review activity of what kind of review activity it is.  For example, you could modify the list values in the Stage list to include 'Peer Review', 'QA', and 'Final Approval'.  Then modify each of the review activities in the CR template(s) to have the corresponding stage value.  Then create a notification subscription for each type of review activity where you specify the Stage property value as part of the criteria.  Then create a notification template for each subscription that has the wording in it that you want.

  • Hi Travis,

    In regards to Review Activities for Service Requests, are there plans to be able to reference the Affected User of the parent Service Request in the Review Activity notification (without the use of Orchestrator)?  The number one piece of information Managers want to see when they receive an approval notification is who is making the request, and that is not currently possible to automatically include.  We've implemented a manual workaround, intercepting each Review Activity and typing in the name of the Affected User in its title.

    Thanks.

Page 2 of 2 (24 items) 12