Monday, Sep 06, 2010
Login

Wait for Closure of all Tasks in Graphical Workflow

A

common Graphical Workflow requirement in Service-now is to tell the workflow to wait for some trigger before continuing. The ‘Wait For condition’ activity is available out-of-box and is very simple to configure. Usually when working with Service Requests or Change Requests I am asked how you can set up the workflow to wait for completion of all associated tasks before closing the Request Item or Change Request ticket. This can be easily accomplished by using a script in your ‘Wait For condition’ activity to query for any associated tasks that are still marked as ‘Active’. If the task is marked as ‘Active’ then it hasn’t been closed yet and the workflow should wait for that closure. Here are some sample scripts that I’ve used before to wait for task completion on both Request Items and Change Requests.

Manipulating Outbound Email in the ‘sys_email’ Table

H

ere’s a cool tip that was just sent to me by my friend Jim Coyne. We collaborated to solve a problem that he had in his environment and this post shows the result he came up with. This post shows how you can manipulate records in the email log (sys_email table) when you have a need to change the contents or recipients of an email record. This isn’t something that should be relied upon heavily and I would consider it basically a last resort but it can prove very helpful in solving the right type of problem.

The problem in this example was that there were emails being sent from Jim’s Service-now system that contained sensitive information. It was necessary to send this information as part of an integration with a 3rd party system but they didn’t want to retain that information in Service-now to be viewed in logs and in the activity history of task records.

Allow Group Managers to Manage Group Members

I

often get the request to set up access for group managers to be able to manage the members of their groups in Service-now. This configuration isn’t too difficult to set up but it does involve a few different pieces. It’s also important to consider your group setup in your system before allowing access in this way. If you are bringing in group memberships from a data source like LDAP for example, the last thing you want is to have your managers manually changing those group memberships within Service-now. The configuration shown below could be easily customized to allow access only to non-LDAP groups if you needed to do both however.

Defined Related Lists

D

efined Related Lists can be a very simple and useful tool to provide users with information in a related list directly on a form (even if that information is not directly associated with the record being viewed). The Service-now wiki contains documentation on this topic so I won’t cover that here. The point of this article is to point out something that often gets overlooked when working with Defined Related Lists and to share a few Defined Related Lists that I’ve used in the past.

‘Copy’ UI action for Change requests (Part 2!)

A

few months ago I wrote about copying change requests using a UI action. While that method works great, it does require you to specify each and every field and value that you want to populate into the new change request. If you’ve got a lot of fields to copy over then you might end up with a pretty big script and a lot of items to copy over. You also need to be aware of any new fields that get added after you create the script and make sure that they get copied if necessary.

The following method works in much the same way, but it copies by performing an insert against the current record (rather than starting from a brand new change record and supplying each value). Because of this, you’re concerned about overriding any of the values (such as start and end dates) that you don’t want to be copied over from the record you are copying. This method works better if you know you want to copy over all (or the majority) of the field values from a given change.

 

Search Provider

Search all Service-now documentation from one place!

Service-now wiki, forums, and SNCGuru.com right at your fingertips!
(Requires IE7+ or Firefox)

Install Now

Subscribe & Share

FeedburnerTwitterYouTubeDeliciousDigg

Email Subscription

Enter your email address:

Delivered by FeedBurner

SNC Tweets

philbert1001philbert1001: wondering has anyone got #servicenow to send data by email in a word doc?Think notification template sent as word (not html in the emailbody
12 hours ago from web
mrlamhoangmrlamhoang: RT @j_roberts: #servicenow Stable 3 hits today. Wiki text kb articles, common practice plugins and custom query joins. http://bit.ly/dtX05V
17 hours ago from TweetDeck
philbert1001philbert1001: off to Swindon to launch a non-IT #servicenow app it's going to be a busy day :-)
22 hours ago from Osfoora for iPhone
tulioqtulioq: @kmarkham19 oh man. Rock star! Thanks! was going to promote caller_id to task table #servicenow
3 days ago from Twitter for iPhone
kmarkham19kmarkham19: @tulioq if you personalize task list layout as an admin you can add these fields to the list view! #servicenow
3 days ago from web

Service-now Jobs

Recent Comments

  • Scott Stechmesser: Awesome script to use. Works great. How would you modify it to be able to copy a Catalog UI Policy?
  • Tulio: Perfect!!! Thanks for this.
  • Ron Methias: Another reason why I have stopped going to the official SN documentation sites and make the GURU my...
  • Richard Huss: Ingenious – and somewhat simpler than the way the Incident Resolution best practice plugin does...
  • valor: Joe, that’s one of the reasons why I’m parsing out the URL instead of trying to get the page...