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

Forum Posts

Resolved! Configuration Item Field Issues

I have a script that is working correctly to auto populate the 'Configuration Item' field (which is a reference field to the CMDB) with a value based on the customer selected. The problem is when I go to save the record, I get an error saying a match...

How to set a reference field to null?

Hi SNC,  What is the way to set reference fields to null (make them empty)?I have an UI Action which clones a change and for the clone I am trying to empty the assigned_group field. My script goes like this:  var change = new GlideRecord("change_req...

mitzaka by Mega Guru
  • 5290 Views
  • 5 replies
  • 0 helpfuls

Resolved! incident created 'opened on your behalf'

Hello forum,    Have created inbound email actionthat create incident based on email from system called SolarWinds. But it is creatingthree incidents one has the correct short descriptionparsed from the email and two more incidentsthat are unwanted w...

Database view access for a new role.

Hi SN community,I have one DBA on staff that will be creating database views for our mobile device management. I don't want to give him full admin access. I have created a new role "database_view_admin". I added "database_view_admin" to the Applicati...

pattipdx by Tera Contributor
  • 5620 Views
  • 2 replies
  • 1 helpfuls

Resolved! Catalog Task UI Policy

I'm having a h****ell of a time getting a UI policy to work on a Catalog Task form. All I want to do is hide a field and I've tried every combination of dot walking I can think of to get the right field and action. Spent 2 hours on it so far!!  From ...

find_real_file.png
amacqueen by Mega Guru
  • 1853 Views
  • 2 replies
  • 0 helpfuls

Resolved! Metric definition script issue

Hi  I have an issue with my metric definition script.  The metric does not work and I'm not sure if I used the not null condition check correctly, or something else is wrong. Even if a try null, 'NULL', or "NULL" it does not work.  I would like the m...

zheil by Mega Expert
  • 2758 Views
  • 6 replies
  • 0 helpfuls

Hide Annotations

I've gotten the element ID and tried doing a .style.display='none'; This seemed like a long shot, so I'm not surprised it didn't work. Does anyone know how to conditionally show/hide an annotation?Thanks!Matt

gaidem by ServiceNow Employee
  • 6497 Views
  • 21 replies
  • 3 helpfuls

Creating new UI Macros for KB_view

I want to add a custom list like "Attached Tasks" to the bottom of knowledge articles. I have made changes to the "Attached Tasks" UI Macro and added my own macro to the kb_view UI Page. But my it isn't working. I am very new to Jelly and I think I u...

Resolved! Custom Chart Stacked Bar

Hi,  I wanted to create a custom assignment group stacked bar graph like the one listed in below link-  JFreeChart: Stacked Bar Chart Demo 4 : Bar Stacked Chart « Chart « Java  I'm not very familiar to JFree chart API but if anyone can help in crea...

Bhupinder1 by Giga Expert
  • 6973 Views
  • 5 replies
  • 1 helpfuls

How to use custom javascript packages in Service-now ?

We can use single file libraries such jquery.min.js by uploading them in UI script but if there is a directory structure which contains js and css files in separate folders; then how will we use them in SNC ? Examples of such packages can be found on...

Resolved! GlideRecord on sys_email ??

Hi!  I am trying to query all rows from the "sys_email" table from within a script include which is called by a scripted webservice (Calgary).  Interestingly I didnt get an rows, this is my code:  . . . var gr = new GlideRecord('sys_email');gr.orderB...

hpesata by Kilo Expert
  • 1906 Views
  • 2 replies
  • 0 helpfuls

Show Service Catalog Variables in a Task View

I want to be able to let my itil users see the variables related to the task they have been assigned when they view "My Work" or "My Groups Work".   If they have many tasks assigned and need to find a particular one, there's no easy method because th...

ajlabate by Kilo Expert
  • 2467 Views
  • 4 replies
  • 0 helpfuls