Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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

Forum Posts

Resolved! Unable to delete records from sys_user_has_role table

I have a custom requirement wherein we need to remove the itil role for the users who have not logged in from pas 9o days. Below is my script which is not working in a scheduled job. var gr1 = new GlideRecord("sys_user_has_role");gr1.addEncodedQuery(...

GlideRecord returns only the first record from the query.

Hello Team, I am trying to query the group member table and applied few conditions to check if user is only member one group. here, the expecting output is list of all the users member of only a single group, to achieve this I have written a script i...

msm4 by Mega Guru
  • 5278 Views
  • 8 replies
  • 0 helpfuls

Multi Row Variable Set - Dynamic Select Box

Has anyone had any experience in adding options to a select box within a multi-row variable set, based on information added to another multi-row variable set? e.g. MRVS1 has two fields, Type (pre-filled select box) and Name (string). MRVS2 has one fi...

Alex Ward by Mega Guru
  • 3163 Views
  • 5 replies
  • 2 helpfuls

How to Create a Switch in Flow Designer

New to flow designer. First time trying to create some sort of switch. I have checkboxes on the request form. They can multi-select the checkboxes, but they need to route to different teams depending. So I will need some kind of join to have it wait ...

Pak by Giga Contributor
  • 3298 Views
  • 10 replies
  • 1 helpfuls

Resolved! How to insert Caller name in Incident template

Id like to create incident template for contacting customers.I want to insert customers name in "Additional comments" automatically,so entered as below, javascript:"Dear "+gs.current.caller_id.LastName() but the result is "Dear undefined".How can I i...

Kazu4 by Giga Contributor
  • 3111 Views
  • 6 replies
  • 1 helpfuls

Resolved! How to validate ip range by using client script only without using any glideajex or server side script. Please help me with example script

1.Test is a single line text variable. for example if i enter any ip range value(0.1.1.1 -25.5.5.5). its check the range and validate it. 2.if i enter incorrect(fsdfasf-11.1.1.1) ,(300.299.1.0) populate alert msg(please give valid ip range)

find_real_file.png
kranthi24 by Giga Contributor
  • 4963 Views
  • 7 replies
  • 1 helpfuls

Based upon assignment group, category fields to show dynamically

Create a category- assignment group mapping table and write client script and script include to handle the show hide if the category, if assignment group is not "software", category and subcategory related to software are not supposed to show up in t...

snavuluri by Giga Contributor
  • 4965 Views
  • 11 replies
  • 0 helpfuls

Asset imports and CI updates

I've built a basic transform map to import assets into the hardware assets and it works ok.   This also creates a CI for the asset (fantastic) but i'd like to autofill some of the CI data from the excel file data import.   I tried mapping to Computer...

eschoon by Kilo Contributor
  • 6580 Views
  • 16 replies
  • 1 helpfuls

Resolved! Check attachment file type-client script

Hi All, I have written a client script to restrict attachment file types.I want to allow users to attach only .csv file types. written code for both portal and non-portal, On portal its working as expected indexOf returns different value for all csv ...

Sin by Giga Expert
  • 7720 Views
  • 11 replies
  • 15 helpfuls