Using a business rule to update an incident field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 06:15 PM
Good day all,
this is going to be a really silly question but I must be missing something very basic.
I have a customer submitting Incident Requests into my Service Now instance. Their short description comes in as a 4 digit number.
In order for my customer's service management system to recognise my responses as part of that ticket chain they need to see responses come back as ##number##.
I have tried to create a business that fires on insert with a script that looks at the short description field and then adds the hashes to it. For some reason i can't get it to work.
My script looks like this:
function onBefore(current, previous) {
var desc = current.short_description;
current.short_description = ( '##' + desc + '##');
current.update();
}
thank for for you help.
Colin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 11:00 PM
Awesome
Would you mind marking response as correct and close the thread if this resolves your issue.
Please let me know if you have any questions.