Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Remove & add user roles via scripting

I've created a catalog item and corresponding workflow that allows certain users to modify the user role of another user. The user selects one of two radio boxes and completes the user's name within the field provided. For example, elevation between ...

bcitil by Kilo Explorer
  • 2514 Views
  • 2 replies
  • 0 helpfuls

getFlatQuestions()

What is the functionality of getFlatQuestions()?means what it does in a package.Someone please help me to understand the codetemplate.print("Summary of RFC Options:\n");var keys = new Array();var set = new Packages.com.glideapp.questionset.SequencedQ...

479342 by Kilo Contributor
  • 4926 Views
  • 2 replies
  • 0 helpfuls

How to send a dynamic image in a notification

Hi,I need to send an image (company logo) as a part of email notification. The image is stored at the service-now instance/images location.Currently the image source is hard coded :src= instancename/hcl_logo.pngxsuch a value needs to be changed for e...

sakshi_a by Kilo Explorer
  • 4309 Views
  • 7 replies
  • 0 helpfuls

How to call new GlideRecord with a variable as parameter

Hi everyone,Today I lost a lot of time trying to make a client script to work as I want, and after some time failing I decided to come for help.All I need is to make a GlideRecord run when the table name comes from a variable. The code I am working w...

Catalog Task onChange Client Script for Variable

Is it possible to create on onChange client script for a variable included on a Catalog Task?On a request form I have 3 variables (Assignment Group, Department, and Computer Type) which depend on each other to determine if billing is required when a ...

jevans by Kilo Contributor
  • 5565 Views
  • 5 replies
  • 0 helpfuls

Changing the way attachments are being displayed

Hi all, I'm looking for a way to change the way how the attachments are displayd on the incidents.If i'm working in an incident, i see the attachements, at the top of my incident form.The attachments are display from the left to the right, sorted bij...

Puister by Kilo Explorer
  • 3242 Views
  • 8 replies
  • 0 helpfuls

Reporting against sys_ template table

I am trying to figure out if I can run a report against the template table.Specifically, I need to find templates that are created by XYZ group and DO NOT contain the configuration item field as an option within the template.Meaning; I am not interes...

nmartinez by Kilo Contributor
  • 2008 Views
  • 1 replies
  • 1 helpfuls

Preventing multiple users updating the same record.

I am attempting to prevent multiple users updating a record at the same time. For instance two members of the Service Desk open the same record and update the record - only certain elements of the first users save will be maintained.I found the follo...

kevsandberg by Tera Contributor
  • 1667 Views
  • 2 replies
  • 0 helpfuls

Disallow Special Characters to enter in text field

Hi Friends,I need help in scripting to "Disallow Special Characters to enter in text field".on celledit, i want the script not to allow to type special characters(!@#$%^&*()) except Alphanumeric(A-Z & 1-9).Can you please help me.ThnxMurthy

Subscribable Notifications

I have read the wiki information on them (http://wiki.servicenow.com/index.php?title=Using_Subscription_Based_Notifications#Special_Subscriptions) and see that there is some special business rule magic going on to get them to work. I am not exactly s...

How to sort the reference lookup list

Hello,How can we sort the reference lookup list (popup window that appears when we click on magnifying glass) alphabetically?As an example , i have a reference field that references User table, on click of the magnifying glass the pop up that appears...

tj2 by Kilo Contributor
  • 6365 Views
  • 3 replies
  • 0 helpfuls

Add flag next to the user field

Hi all,I'm trying to add a small flag next to user field in the incident form depending on the manufacturer of the computer assigned to him (cmdb_ci table).I'm trying to do something pretty simple, based on the VIP flag which is shown when a user is ...

Hichem by Mega Expert
  • 3481 Views
  • 10 replies
  • 0 helpfuls

Filter Configuration Item results in Change Request

Hello,I have been having trouble for a little while now in attempting to filter results in the Change Request application for Configuration Items.At first I attempted to do it via a Business Rule for Change Requests but at first it ended up not filte...

log5212 by Tera Contributor
  • 3037 Views
  • 4 replies
  • 0 helpfuls

Creating Embedded List like function on a Catalog Item

Hi,We are trying to create a catalog item with a function which looks similar to the embedded list. http://wiki.service-now.com/index.php?title=Embedded_ListsThe idea is to provide the end user with a set of variables and the ability to create multip...

markg_TIN by Kilo Explorer
  • 2905 Views
  • 4 replies
  • 1 helpfuls