Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

How to write external JSON code ServiceNow REST API

Hi There  Can anyone please help on how we need to write the below json code into REST Messages in ServiceNow under HTTP Methods-->Variable substitutions. When I run the below code in POSTMAN with the required headers we re getting the success respon...

Hemalatha1 by Tera Contributor
  • 3128 Views
  • 8 replies
  • 0 helpfuls

How to set delay in my on change client script

Below is my the small part of code that i am using in my client script, could anyone please help to know that how i can place a delay there, i mean after setting the value in "category" i want to waiit for few seconds then only i should populate the ...

VIKAS MISHRA by Tera Contributor
  • 20852 Views
  • 6 replies
  • 18 helpfuls

Resolved! How to hide a related Lists based on certain condition

Hi, I have the field 'Master' of type True/False and I have the related list 'Software Installation'.Im trying to Hide the related list if Master is False using onLoad Client Script.What am I doing wrong? function onLoad() {var epc = g_form.getValue(...

Screen Shot 2023-01-02 at 12.06.20.png
Alon Grod by Tera Expert
  • 13476 Views
  • 2 replies
  • 14 helpfuls

Recursive script include returning "undefined"

Hi All,I am running into an issue with my script include. I use this to go through the departments relations until i reach a specific department. The issue is it always returns undefined. But when i debug it and check the console. it does find the co...

Jonas VK by Tera Guru
  • 2156 Views
  • 8 replies
  • 2 helpfuls

How to enable filter in the sp portals

I have created a Widget for database view in the Sp portals , i need to enable the filter in the widget, how to do that?on clicking the Ctrl+right click --> the instance option is not enabled,how to make enable in the widget, any one suggest me with ...

0201a.jpg

Same notification with same recipients is triggered twice

I have a BR on RITM table that triggers when comments change , script has a event and is used in notification with weight 10. When a approval is rejected with a comment (a different script copies the comments to RITM) ,the comment change BR is trigge...

Kumar38 by Kilo Sage
  • 2171 Views
  • 12 replies
  • 0 helpfuls

How to show ui page BEFORE default login screen

Hello All!I need to show a public facing warning page to the user BEFORE they are allowed to enter login details.I have built a ui page to do this.I know that if you name a ui page "login" then the user to will be sent to that ui page first BUT the i...

Devin V_ by Kilo Guru
  • 2311 Views
  • 3 replies
  • 1 helpfuls

Resolved! User Deactivate after 90, from User table

Hi , I would like to send the notification to the user do not using their account after 90 days, The idea would be I think to send a first notification 85 days to warn him and and a second the 90th day to informed him that the account will be disable...

Hari Babu by Mega Expert
  • 4142 Views
  • 11 replies
  • 14 helpfuls

Type change not allowed. Invalid type conversion for field 'System Name' on table 'Incident'. Cannot convert from 'Choice' to 'Reference'. There exists data records (26604) that are not a Sys ID.

Hi All,I was trying to change the type of field on Incident from 'choice' to 'Reference'. I got the error as 'Type change not allowed. Invalid type conversion for field 'System Name' on table 'Incident'. Cannot convert from 'Choice' to 'Reference'. T...

peshwen by Giga Contributor
  • 7998 Views
  • 6 replies
  • 4 helpfuls

Duplicate records in parallel Rest API

Hi I have Scripted Rest API that creates task records from another applications.We have a unique key (the field in the task table is unique = true) . If there are several requests from the APis with the same unique key there are more then one record ...

noa by Tera Contributor
  • 2224 Views
  • 3 replies
  • 0 helpfuls

Resolved! How to write Advanced reference qualifier & Script Include

Hi, I want to set a person who belongs to the same department as the applicant's department. But it returns an error.. What's wrong?   Script Include: var getMyDepartments = Class.create();getMyDepartments.prototype = { initialize: function() {},getD...

find_real_file.png find_real_file.png
Mi4 by Tera Expert
  • 25321 Views
  • 9 replies
  • 9 helpfuls

Resolved! Script include for advanced reference qualifier

Hello experts I am facing a issue with a script include I am using in for a advanced reference qualifier. The customer I am working with is using the Service Desk Call application. If they the Call type is set to incident, they should be able to choo...

find_real_file.png find_real_file.png find_real_file.png