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.

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

Forum Posts

session_timeout.do infinite redirect loop

Every time I log out from the SN instance I get an infinite redirect loop with session_timeout.do. It also happens when I try to access the instance without being logged in.We have MultiSSO enabled with two identity providers, and i'm logging in thro...

Screen Shot 2017-08-15 at 20.48.15.png
oleg7 by Tera Contributor
  • 4512 Views
  • 6 replies
  • 1 helpfuls

How to do a "vlookup" in javascript

Hi all, I want to do sort of a "vlookup" in ServiceNow with a scheduled script execution.  - Column_A is in table "u_test" and is a reference field - Value "X" is a value in Column_A and belongs to reference table "u_example" - If Column_A has the va...

Carter1 by Giga Guru
  • 1811 Views
  • 2 replies
  • 0 helpfuls

Get Display Value of Date field

Hello, I am using a business rule to pull the value of a date field called 'date'. I am trying to get its display value but am hitting some difficulties. What am I missing? var grContract = new GlideAggregate('x_utsll_time_manag_hour_tracker'); grCon...

find_real_file.png
JJG by Kilo Guru
  • 8625 Views
  • 13 replies
  • 2 helpfuls

Use HTML Value in the Server Script - Widget

Hi, I have a simple widget which inserts a record after I click on the button. My problem is that I can't get the values of the HTML Fields to also insert them. I want to insert the value of the Date- and the Time-field and also the textarea. Here my...

PaKe by Kilo Sage
  • 2484 Views
  • 2 replies
  • 1 helpfuls

Resolved! Best Practices for Combining Users from External Source

Our external (LDAP/AD) user import source includes multiple types of user records. Every user has a standard user account, but some users also have separate accounts to specifically identify elevated rights. Each of these accounts can belong to diffe...

MGanon by Tera Guru
  • 2967 Views
  • 14 replies
  • 4 helpfuls

Resolved! How to encrypt a password in scoped application?

Hi,   I have a requirement to encrypt a password in scoped aplication (security Incident Response). Please help me in achieving the target. I know how to do the same in global scope using GlideEncrypter().   var encr = new GlideEncrypter();workflow.s...

How to restore default Service Now Self-service portal (/sp), which was lost during the initial implementation of our company portal.

During the initial implementation of our company portal ,default Service Now Self-service portal (/sp) was lost. Now,It's highly required to get it back to test integrations of OOTB components into our company service portal Please advise me how to r...

Business Rule Not working When adding roles from Groups

Hello,I have requirement where i have created a custom Checkbox field (i.. ITIL User) on user table (sys_user).I need to check this field check/uncheck based on role added to user though groups, So i have created a business rule as following:table : ...

hussain h1 by Tera Contributor
  • 2801 Views
  • 5 replies
  • 0 helpfuls

Resolved! Attachment API returning 404 error

Hello community members, Hope all are safe and doing great! I am trying to retrieve/download an attachment using the Attachment API. This attachment is a csv file attached to a record on sc_request. But when I try to hit it using the REST API Explore...

find_real_file.png find_real_file.png

Dot walking in variable attributes

Hi,  I'm trying to add a variable attribute to my catalog variable. The field I'm trying to use is a reference field. Below is what I have and it doesn't work:  This is a reference variable and refers to alm_hardware table. i have mac address field ...

find_real_file.png
Sachin65 by Tera Expert
  • 3561 Views
  • 2 replies
  • 1 helpfuls

Resolved! How to delay the workflow without using a timer (timing)?

Hi, My requirement is that like setting a timer in a workflow, I would like to use business rules and other features to set a delay before the workflow's approval record occurs. (The real requirement is that I want to copy a file to an approval recor...

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

Storing hashmap in memory in ServiceNow

So let's say I have the following function as an example which is a scheduled job that runs once a day: function buildMap(){var hashMap = [];hashMap["basketball"] = "ball";hashMap["hockey"] = "stick";hashMap["tennis"] = "racket";}Is there a way to st...

Mike278 by Kilo Explorer
  • 2117 Views
  • 5 replies
  • 0 helpfuls