We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Script to compare opened time by current time/date

I am looking to update this condition below to compare an incident's opened/created time with the current time. The aim here is to only show a specific option on the widget when the incident is over 5 days old. Current condition: if (data.table == 'i...

Resolved! How to set Set Preference in GlideModel

Hello Team @Ankur  I would like to inform you that below mention code is OBB but I'm not able to understand that how i can get the  sysparm_sys_id_list,caller_table from where .  Please help me .   function createEvidenceForIssue() { var dialog = new...

UpdateSet Commit Order

Hi. I am planning to create multiple UpdateSets and commit them to the validation environment. I had one question, If I create multiple UpdateSets, how do I commit them to the validation environment? Commit in order from the oldest UpdateSet creation...

d-aizawa by Kilo Sage
  • 1412 Views
  • 5 replies
  • 4 helpfuls

Resolved! How to call a Flow from another flow

Hi team, Can someone please help me on how to trigger a flow from another flow. I have an existing flow as "XYZ". I have created new flow "ABC" and in the new flow i have a trigger condition and an Action. I have stored the script below in the action...

Hi All, I am working on one of the Order guide form. I have close completed all the RITM'S and also related task but REQ request status is showing Approved.

Hi All, I am working on one of the Order guide form. I have close completed all the RITM'S and related task but REQ request status is showing Approved. but When I close complete all the RITM's then the main REQ states should be close complete right? ...

find_real_file.png find_real_file.png
vinuth v by Tera Expert
  • 845 Views
  • 2 replies
  • 0 helpfuls

Resolved! Schedule job script to get field value from user table

I've  created birthday (u_birthday) field in user table (sys_user) which stores users birth date. I want to send emails to the users whose birthday is in this month only. var users = new GlideRecord('sys_user');users.addActiveQuery();users.query();wh...

Dee S by Tera Guru
  • 1571 Views
  • 17 replies
  • 2 helpfuls

Hiding catalog item field

In the catalog item .I got a requirement to hide a field based on the user business unit and if it belongs to the list of business unit then assign it default value of yes.What approach should i should use Catalog client script or UI POlicy.

Resolved! how to use LIKE in query

Hi,  I have this query and instead of using LIKE and sysid i need to use LIKE and the var product. What is the right way to replacing the sys ID with the variable product? u_allowed_duplication is of a type list and its a reference to a table, so i n...

Alon Grod by Tera Expert
  • 7542 Views
  • 5 replies
  • 3 helpfuls