Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Forum Posts

Resolved! Need to get requested_for.location.country in catalog script

I have been given a new requirement for our iphone request catalog item to try and prevent US users erroneously selecting Vodafone as a provider.   I set up an onChange script for my vendor variable but am running up against the fact that you can't d...

conanlloyd by Giga Guru
  • 2772 Views
  • 5 replies
  • 2 helpfuls

Issue with GlideRecord for Request & Requested Item

I have to generate a Gliderecord report, where Request is still open and attached Requested Items are closed or closed incomplete. var str = 'request.request_stateNOT INclosed_complete,closed_incomplete^stateINclosed_complete,closed_incomplete'; var...

manish123 by Giga Guru
  • 1227 Views
  • 3 replies
  • 0 helpfuls

Resolved! Schedule transformation from import set table to target table

Hi All, In my scoped application, I have created a table extended from import set row, and one onBefore and one onAfter tranform map script to control the insertion from import set table to the target table. I have an external http client, calling Se...

ydai by Mega Contributor
  • 6186 Views
  • 10 replies
  • 3 helpfuls

Resolved! Removing duplicates from my lookup select box

Is there a variable attribute that I can use to remove the duplicates from my table.I have a catalog form that has a variable that I set up as a look up select box from the table that I created.I want to filter out the duplicates. There are duplicate...

find_real_file.png
Cupcake by Mega Guru
  • 2571 Views
  • 2 replies
  • 1 helpfuls

Resolved! Change field label via script

So we just upgraded our DEV instance to Jakarta patch 3 and I am having trouble with a script.This will change the field label in Service Portal, but will not work in the ITIL service view.   The "changeFieldLabel" did work in Helsinki in the ITIL se...

find_real_file.png

Set default VIEW to open / global search an Item / story

In my dev instance, I have a story list. By default it is showing "SCRUM" view in list. By clicking one story, it is opened with "SCRUM" view. But, my requirement is it should be in "Default" view.I have removed the "scrum" view name from the respect...

Resolved! Error 404:The requested resource is not available.

Hello,I have created a REST Web service to record data in tables in servicenow.And I am calling this web service from an external client.But sometimes whenever I call the web service,it gives me "Error 404:requested resource is not found" in response...

ishaanvohra by Kilo Contributor
  • 4621 Views
  • 9 replies
  • 0 helpfuls

POST REST

Hi , I am trying to do integration for the first time and needed some help. We have REST API's for GET and POST calls. Figured out how to use GET REST and populate the data. All this is for a new custom application which we are trying to create. Once...

Continuation of script to next line

Hi Friends.I have to close many Incidents . i am doing it by script by hardcoding them.Likevar chn = new GlideRecord('incident');chn.addQuery('number','IN','INC0051502,INC0051172,INC0051088,INC0051334');   like this i have to provide some 500 incide...

aarav by Kilo Contributor
  • 1456 Views
  • 13 replies
  • 2 helpfuls

Resolved! [Service Portal] How to force the default language at login ?

Hi Community,We are currently implementing portal service in our company. The target users are essentially French and must get pages in French. We have loaded the French languages into their user profiles but the first connection (via the login page ...

Community Alums by Community Alums  
  • 5315 Views
  • 6 replies
  • 2 helpfuls

Switch statement

FWIW, I was looking for info to see if I could use a switch statement in a transform script rather than a bunch of if/else. I found no examples in the forums or wiki so I gave it a try. It worked! Here's my solution to take a single character from ou...