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

Catalog data lookup definition

I am trying to write a catalog data lookup definition. If a user is logged in then it will auto populate their business unit and location. But it is only working in on change. It is not working for on load. Does catalog data lookup definition not wor...

I_Das by Tera Contributor
  • 3498 Views
  • 5 replies
  • 0 helpfuls

How to send a notification to the assignment group?

Hello All,I have 3 level approval for exception management. Each approval level assignment group has its own group email. I want to send a OOB Notification for each level of approval. The Notification is on Approval [sysapproval_approver] table and t...

ArpitaVK by Tera Guru
  • 2338 Views
  • 2 replies
  • 0 helpfuls

Resolved! How to get incident age

Hello,I have a requirement regarding getting the incident aged based on the created date, incident age will appear in the choice list if incident new will appear (Below 30 days) if the incident above 30 days (Above 30 days) and (Above 60 days) until ...

Community Alums by Community Alums  
  • 4548 Views
  • 27 replies
  • 2 helpfuls

Resolved! UI Builder hiding components based on logged-in user's GROUP

In ServiceNow UI builder configurable workspace, what is the best way to hide a component based on the current logged-in user's group? I know how to hide a component based on the current user's role utilizing the api user.roles but I want to use the ...

CodeHearted by Tera Contributor
  • 3944 Views
  • 3 replies
  • 2 helpfuls

Resolved! Get users sysids from group memeber table

Hello,I am trying to get users sys_id's from sys_user_grmember table for one particular group(X). (X) group have 13 group members. I have written a code. however It seems code is not working. It prints only one sysid multiple times.           var arr...

Vinay49 by Tera Expert
  • 2286 Views
  • 3 replies
  • 0 helpfuls

Resolved! addActiveQuery() and addEncodedQuery()

Hello All I am running script include function and just notice that this code lines sequence does not filter for active records var gr = new GlideRecord(someTable); gr.addActiveQuery(); gr.addEncodedQuery(strQuery); // gr.query(); but this one does v...

nataliya_b by Kilo Sage
  • 27526 Views
  • 13 replies
  • 10 helpfuls

Resolved! Business rule script variable "undefined"

Hey all, I am working on creating a business rule that will set the short description of an incident inserted to "Compensation Change: " +producer.variable_name. When I test the script the short description comes back as: "Compensation Change: Undefi...

Resolved! Searching attachment in ServiceNow

Hello Community Members! We are seeking a way to programmatically search attachments (Excel type) in Change Request applications based on specific keywords. I’m wondering if this is possible. Any assistance in this matter would be greatly appreciated...

Alex Litvak by Tera Contributor
  • 1547 Views
  • 1 replies
  • 1 helpfuls