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

Articles

How to show warning messages

Problem On server-side scripting, ServiceNow provides two options to show messages, either as info messages or as an error message. For this ServiceNow provide GlideSystem functions, addInfoMessage() and addErrorMessage(). This would work for both na...

find_real_file.png find_real_file.png
Aljo2 by Tera Expert
  • 7905 Views
  • 1 comments
  • 7 helpfuls

Fire an email notification from a schedule job

Fire an email notification from a schedule job   This question popped up in the community and I thought I might as well put the answer here as well. Question was how you could check if the valid to date is 30 days from now and then send a notificatio...

DevBasics: Harden your Signatures

  In the several thousand questions I've answered here in the community, as well as in my customer projects over the last few years, I've seen a lot of JavaScript code. And in most cases, implemented methods/function were not secured against their ...

find_real_file.png MaikSkoddow_5-1679219494679.png MaikSkoddow_6-1679220105845.png MaikSkoddow_1-1679151563294.png

Failed API level ACL Validation - 403 Forbidden

        Failed API level ACL Validation - 403 Forbidden error   When we're trying o connect on the web servisse. Are you getting this error? Steps to reproduce: Connect using some programming tool OR API Explorer >> System Web Services > REST > REST ...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png
tiagomacul by Giga Sage
  • 5829 Views
  • 2 comments
  • 2 helpfuls

System Clone Explained

Hello everyone, I’d like to share what I’ve learned about instance cloning. What is it? The common use of instance clone production environments over dev/test at certain amount of time, to ensure that the development/test teams are working in condit...

Add Catalog Item to existing Request (with CartJS API)

I wasn't really happy with the Solutions I have found on the community for this issue.With the old way of doing this (GlideappCalculationHelper.addItemToExistingRequest) you have to populate the variables manually after the requested item has been in...

mak1A4 by Tera Guru
  • 6632 Views
  • 13 comments
  • 11 helpfuls

Get Unique Values with GlideAggregate

Recently I had to check what are the unique values for one field in a table. The table had over 5000 records and at least 400 unique values. For a quick check, I could just group the list view by this filed and read the number. The issue is that I ne...

Creating RITMs from multi-row variable set

The code below should create RITMs from the mrvs. It should also copy columns from mrvsa to variables if they have the same prefix.  Business rule: after; on insert Table: [sc_request]     (function executeRule(current, previous /*null when async*/) ...

stail: tail -f the ServiceNow System Log

Ever miss the 'tail -f' in the Unix world on ServiceNow? I did, so I quickly wrote a Python script to tail the System log. It works by polling your ServiceNow instance looking for new records to simulate tailing the logs.How to use:1. Copy and paste ...

Screen Shot 2016-05-20 at 2.41.52 PM.png
danjyoung by ServiceNow Employee
  • 1450 Views
  • 2 comments
  • 1 helpfuls

Real-time Cases with Glide User

What is Glide User API and Usage Glide User API and methods are useful to get current logged in user details and their roles. The typical use cases are personalizing feedback to the user and inspecting user roles.  Glide user typically running from c...

Top Contributors