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

Forum Posts

Why am I getting a NumberFormatException?

I have an email script that gets called by a number of different notifications using several email templates.  It has been working as expected.  Today I went to use it on an updated version of the incident commented notification.  When I run that not...

johnfeist by Mega Sage
  • 1019 Views
  • 1 replies
  • 0 helpfuls

Why database view is not working as expected?

I have following setup for a view. The purpose is to get list of users who belong to a specific group. However, it seems ServiceNow is completely ignoring the where condition "usr_group='4404aff51bd0f810ae9610a61a4bc..." and shows all the groups and ...

TT3 by Kilo Guru
  • 1008 Views
  • 2 replies
  • 0 helpfuls

Resolved! HOW TO GET THE RITM VARIABLES VIA SCRIPT?

I am working on a requirement to provide a list of servers on a portal page. I have two question. 1. How do i query the variable for the appcat request item should be equal to ac.sysid. Which would return all requests opened for 'this appcat'. 2. I a...

find_real_file.png
ASHLE CRAIG by Giga Contributor
  • 5057 Views
  • 2 replies
  • 2 helpfuls

Assignment group should be changed based on change of CI

Have a requirement  I have to populate the assignment group (eg:- test group) when i select any of the CI (eg:-a or b or c) If i change the CI back to "mackbook air" then the Assignment group and Assigned to should be replaced back. Can any one pleas...

Community Alums by Community Alums  
  • 1310 Views
  • 3 replies
  • 0 helpfuls

Is there an API for Agent Chat (Live Agent)?

Hello, What I am trying to do is integrate the Agent Chat of two different instances, if a user in instance A requests a live Agent, an agent in instance B can attend him and have a conversation through Agent Chat. Thanks.

find_real_file.png
Ed23 by Tera Contributor
  • 4846 Views
  • 4 replies
  • 0 helpfuls

Resolved! Retrieve sys_id from array stocking unique Names

Hi, We are trying to retrieve the unique values of a table and then stock their sys_id in an array. I got the unique values of Software Names in an array but don't achieve to get their associate sys_id. var arrCmdbSpkgID=[]; var arrCmdbSpkgName=[]; v...

Nico12 by Mega Sage
  • 1343 Views
  • 5 replies
  • 0 helpfuls

Resolved! Convert sys id to string value

Hi, I am testing my script in the background script. It is printing out sysid values. How can i change to more human readable and convert the output to a string.  var user = gs.getUserID();         var ac = new GlideRecord('cmdb_ci_service_discovered...

ASHLE CRAIG by Giga Contributor
  • 2828 Views
  • 1 replies
  • 1 helpfuls

Javascript Evaluator Exception

Hello Everyone! I have a piece code for which i'm getting an error. Can anyone please suggest what could be the cause for error and how I can overcome it. For this code I'm getting error like below. Thanks in Advance !

How to get User Data

Hi Team, kindly help me on below issue. On Form we have " Bill Check box", here who made checkbox= True, that Person User name(Ref: user table) , Deprt (string), Date .., need to be populated in respective fields Issue : On INC008354 , As a admin whe...