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

How to get a Mandatory field in a Business Rule

Hi. I have Mandatory set for some fields, but I want to change the content of the error message that is displayed. This time, the UI Policy cannot be used due to complicated requirements. So I want to use the Business Rule (On Before) to get the Mand...

Ereshkigal by Tera Contributor
  • 1824 Views
  • 2 replies
  • 1 helpfuls

Close all incidents more than a year old

Hello, Newbie to SN . I'm trying to write background script to run for one time use only, to CLOSE ALL the incidents, that is more than a year old( 365 days). Nothing happens when I run it in Test environment. What AM I doing wring?   rejectOldApprov...

Shree Nag by Tera Expert
  • 992 Views
  • 4 replies
  • 0 helpfuls

Capturing attachments in update sets

Hi Everyone! Question: What is the best way to capture an attachment in an update set? Also will the sys_id of the attachment change once its in a different environment?

paradise624 by Tera Contributor
  • 3259 Views
  • 5 replies
  • 1 helpfuls

How to call REST Message from UI Page client script

Hi, I want to call a REST Message which i setup from UI Page that I created. The reason for this is I want to use sn_auth.GlideOAuthClient() which requesting a token to azure ad. tried writing a javascript ajax or xhr but i'm having cors error

How to populate one field with information from 2 fields?

Hello all, I am trying to populate 4 fields on my catalog item with information from the user record. These four fields I have highlighted are all fields that should be populated with information. The "office" field is a reference field for the cmn_l...

find_real_file.png find_real_file.png
astanley by Tera Contributor
  • 2274 Views
  • 11 replies
  • 2 helpfuls

Reference Qualifier for variable set variable

Good evening all, I am trying to get a reference variable in a variable set to only show the list of users that correspond with the titled selected. So if 'Solution Consultant' is selected, only users with the title 'Solution Consultant would show up...

find_real_file.png
JU by Kilo Contributor
  • 3651 Views
  • 7 replies
  • 1 helpfuls

Resolved! How to clone task with a checklist?

I have been struggling with this script for too long.  My task and the checklist are cloned just fine, but the query for the checklist items never returns anything.  I have added logging and the correct sys_ids are being passed.  When I view the chec...

Kevin Meier by Mega Contributor
  • 2324 Views
  • 6 replies
  • 6 helpfuls

Resolved! Adding new records to custom table

Hello, I am reaching out because I was wondering how to add a new record to a custom table?  Most of the time I don't have to build/update custom tables. So for example, there is a custom table that has been created that will contain a list of approv...

Justin W by Tera Contributor
  • 2020 Views
  • 6 replies
  • 2 helpfuls