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! Get instance name of service now (dev v prod) via script

Looking to avoid hard coding debug variables and passing them amongst sub-workflows.Were I doing standard web development w/ JavaScript, I'd do something likevar isDebugvar host = window.location.hostname;isDebug = host.includes('dev');Is there a way...

brantgluth by Kilo Expert
  • 13723 Views
  • 2 replies
  • 5 helpfuls

Resolved! Variable reference qualifier

I have created 3 reference on my record producer. I am trying to add a reference qualifier to filter out options based on the parent of the record.Here are the variables:The tables referenced here have parent field to show which record is the parent ...

find_real_file.png find_real_file.png
ebaileyybs by Tera Expert
  • 6482 Views
  • 9 replies
  • 1 helpfuls

Resolved! Business Rule Condition not working

The following condition works when the assignment group value selected from the assignment_group drop down list is 'Maintenace':current.assignment_group.changes() && current.assignment_group.getDisplayValue() == 'Maintenance'However, this condition d...

m_m by Tera Contributor
  • 3961 Views
  • 19 replies
  • 8 helpfuls

Resolved! Can't get Bootstrap features to work in UI Pages

votefavoriteI'm creating a UI Page and am testing out possible site layout ideas from Codepen. The page I'm testing out uses jquery for a cool hero sliding feature upon hover and I've also included our team's Bootstrap inverse navbar. I used Bootstr...

yundlu316 by Kilo Guru
  • 2362 Views
  • 7 replies
  • 0 helpfuls

Resolved! Dropdown field

how to create a dropdown field whose values should come from a table? I am not interested in Reference fields, I want only dropdown field in which users should not be allowed to enter anything apart from selecting a value from the dropdown list.if I ...

Khanna Ji by Tera Guru
  • 5171 Views
  • 8 replies
  • 6 helpfuls

Resolved! Auto-create Related List Record on Creation of Parent Record

Thought this was going to be easy, but finding it's not.Parent table = Demand (dmn_demand)Related LIst Table = u_dmn_resources_operationalReference field on Related Table to create relationship = Demand (u_demand)I simply want to auto-create a record...

Resolved! Client Script - Alert message if updating to a specific state

Hi All,I have an onSubmit client script that alert's the user when they attempt to submit/update a Change Request to a specific 'state' and they do not have a required role.   This seems to be working fine, however I wanted to add some logic where if...

CAB Client Script.jpg
fpuzon by Tera Contributor
  • 3549 Views
  • 11 replies
  • 2 helpfuls

Weird white border surrounding UI Page

I've created a couple UI Pages and there's always a strange white border that appears around my entire page.   When I copy the exact same code into a dynamic block, that border doesn't exist.   Has anyone experienced this?   Is there a way to get rid...

find_real_file.png
yundlu316 by Kilo Guru
  • 1567 Views
  • 6 replies
  • 0 helpfuls

Resolved! Where can I run queries?

Hello,I am new to ServiceNow.   I understand how GlideRecords work in querying data in Transform Maps but I am trying to run a query offa table in the CMDB and record those records in a table I created.What is the process for this?   For example, if ...

zsquared by Tera Contributor
  • 6667 Views
  • 9 replies
  • 5 helpfuls

Resolved! get Sys_ID from Service portal URL

I am trying to get the Sys_Id from the URL and then fetch the related records from a table. I tried, data.sys_id = $sp.getParameter("sys_id"); in the server script ; but it doesn't fetch the sys_id from the URL. Please assist.Regards,Yogesh PH

Resolved! Business Rule Not updating the field

I have a "After" Business rule on "Insert/Update'The below condition not setting the particular reference field.. I tried with setDisplayValue but it sounds like its not supported in scoped application, it seems.. current.development_team_developer =...