#scsm and #scorch: Notify on Rejected Review Activity (Approvals)

AlertWhile building our new user provisioning/deprovisioning process in Service Manager and Orchestrator, I ran into a little bit of a wall. Creating a notification workflow to notify the originator of a service request when someone has rejected the request (i.e. voted reject on the review activity) proved down right impossible, and then I found this great blog post by Sharon Abarbanel.

I must admit, however, that I had some difficulties with the runbook in his post, and decided to rework things a little. I also wanted to make the runbook a little more generic, so it didn’t just apply to the review activities for new user accounts, but to any review activity related to a Service Request item. My runbook looks like this:

image

So, start with a monitor object activity that looks for Review Activities that’s been updated with a Failed status. From the review activity, you can retrieve the reviewer object, link it back to the user object from the CMDB using the Voted By User relationship class on the link between Get Related User and Get User Detail, like this:

image

Now we get the Service request through the relationships, and then the user who logged the request, using the Created by User relationship class:

image

Easy enough, once you figure out which relationship components to use.

Now you can build your notification, and use the email address from the user object as the recipient, customise the email with your branding and Bob’s your uncle.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s