Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

Resolved! Run SQL Server queries in scripts background

Hi All,I have written some SQL queies but it is not working when i checked it with script background , I am getting some errors .gs.sql("(select category from incident;)"):[0:00:00.000] Script completed in scope global: scriptJavascript compiler exce...

Encryption and security of discovery credentials

I am having a really hard time coming to grips with the security surrounding our discovery credentials. In turn our Chief Security Officer is throwing up road blocks in regards to credentials that have access to the servers.Does anyone have more info...

Community Alums by Community Alums  
  • 6673 Views
  • 5 replies
  • 1 helpfuls

Resolved! Using Script Includes in Domain Separated Environment

I'm working on a domain separated instance and am using client scripts to configure forms based on what company is selected.   I'm using an ajax script include which includes queries across the core_company table (including companies outside the user...

asd13 by ServiceNow Employee
  • 5209 Views
  • 3 replies
  • 3 helpfuls

Resolved! Splitting Multiline

Hi,We have a multiline field on a item which we need to split into the indvidual lines and process these in a JS Script.Is it possible to convert the multiline into an array, we have tried lines.split ('\n'); and also using match but neither have wor...

goochg79 by Kilo Explorer
  • 5481 Views
  • 8 replies
  • 0 helpfuls

Resolved! Function X is not allowed in scope Y

Good day all,I am busy with creating a custom application and tried to create an application Script Include. I am trying to call a basic function (in this case getFields)This however gives me an error, what is the correct way of using/create a script...

wallace by Kilo Contributor
  • 10271 Views
  • 3 replies
  • 1 helpfuls

Resolved! How to check if a list of users have a role?

We are on Fuji patch 3I am trying to check if users in an OU have a role and if not add it. I have manually added the role to one user and verified the entry in the sys_user_has_role table but the below is not returning any who have the role. After r...

Resolved! Fields in Email Notification

Hi all,  (I'm new to ServiceNow)  I am looking to create an email notification, which sends an email to HR when we are notified a user is leaving the company.I have an event in place, and the email notification is triggered and sent.  However, the i...

ryan86 by Kilo Expert
  • 4978 Views
  • 6 replies
  • 0 helpfuls

How to handle Mouse Hover envents in Service now?

Hello,My requirement is as follows I have some custom tables and out of box tables, all the tables have schedule start date time and end date time. I have to design a custom   Calendar page, and should display all the events out of these tables in a ...

rkp1 by Kilo Explorer
  • 3645 Views
  • 3 replies
  • 0 helpfuls

Resolved! I have a sys_id, how can I find out what it actually is?

I am trying to track down a content_block_menu named "Portal Menu" from a dropzone on my site.   There is no "Portal Menu" in the list from Content Management -->Blocks-->Navigation Menus.   I have the sys_id from the dropzone - is there a way to fin...

donb_ by Kilo Expert
  • 3600 Views
  • 4 replies
  • 0 helpfuls