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

Forum Posts

Getting "TypeError: Cannot create property 'value' on string"

trying to use "sn-record-picker" in a Ui page and getting this error. please Help. HTML: <sn-record-picker field="'altCont'" table="'sys_user'" display-field="'name,user_name'" value-field="'sys_id'" search-fields="'name,user_name'" page-size="100"><...

find_real_file.png
vkiran by Mega Expert
  • 20096 Views
  • 3 replies
  • 1 helpfuls

Record producer reference variable, Variable attributes issue

Hi Forum, How can I set the fields for the reference table window on the service portal. Here it is my issue, I have some record producer with reference field to Location table, now I would like to display location code, street, city and zip code col...

find_real_file.png
Devi16 by Tera Contributor
  • 5276 Views
  • 18 replies
  • 1 helpfuls

Resolved! How is gs.daysAgoEnd calculated?

I have a scheduled job that runs at 3:00 in the morning. In there it uses gs.daysAgoEnd. I'm not sure why, but when I run that later in the day it shows the day ends at 5:59:59 the next day. My question is does the time of day that you run gs.daysAgo...

Jase2 by Tera Contributor
  • 2938 Views
  • 7 replies
  • 0 helpfuls

Making a field mandatory in a pop-up

I have a requirement when promoting an incident to major to make both fields on the pop-up mandatory.  When promoting to major there is a UI Button that is selected.  Currently one of the fields work notes is already set as a mandatory field.  I now ...

Ear19 by Giga Expert
  • 2666 Views
  • 1 replies
  • 0 helpfuls

Embed dashboard URL to display on SharePoint

I have a requirement to display ServiceNow dashboard on SharePoint. I tried copying the URL of dashboard and see the message "This website doesn't support embedding using just the address. Try pasting the embed code instead.". How do I resolve this? ...

Radha K by Kilo Guru
  • 7632 Views
  • 4 replies
  • 1 helpfuls

CMDB Health Dashboard

Hello ,   We are starting to leverage CMDB health dashboard,Although we do not want to measure all the CI's in the cmdb_ci table as we are just going to focus on Hardwares as in Computers and Servers.Would creating a custom Health Dashboard(by replic...

Jesny Job1 by Kilo Explorer
  • 2346 Views
  • 3 replies
  • 2 helpfuls

Resolved! sys_id and current in addQuery in GlideRecord

Hi folks, So far I am self-learner in SNow and I still don't get it some part of GlideRecord query. I assume that I can't understand deeply how to use sys_id and query on that and what is the current. I can build a basic query on GlideRecord but if i...

Andrei16 by Kilo Contributor
  • 29706 Views
  • 4 replies
  • 44 helpfuls

Resolved! Need help on Random Selection of value

Hi,   I have a system property from where i wanted to pick only 2 random values every time.   I am able to pick one value but can anyone please help me how to pick 2 random values every time ?   var tbl = gs.getProperty('random.generator'); gs.print(...

Resolved! Validation on a Decimal field

Hi, I have a decimal field where i want to give out an alert message when the number entered has more than 3 decimal places i.e. if the input for a decimal field is 13.4567, i want an alert message to pop up  Can regex validation be done on a decimal...

srivatsa by Giga Contributor
  • 1843 Views
  • 3 replies
  • 1 helpfuls