We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Alternate to current.setAbortAction

Is there another way to stop a record insert when the business rule is running before insert without using current.setAbortAction(true)?We have another product integrated with ServiceNow that does a SOAP insert, however under certain circumstances we...

jbutz by Kilo Expert
  • 3164 Views
  • 3 replies
  • 0 helpfuls

Multiple Outbound Email Accounts

Has anyone set up their instance using multiple outbound email accounts?We have different departments on campus using our instance and we would like to have separate email accounts as points of contact for each department. We currently have Inbound E...

aalarco4 by Mega Contributor
  • 6241 Views
  • 6 replies
  • 0 helpfuls

Set field value on current in Display Business Rule

Hi all,I'm having the following problem with a Display Business Rule.The idea is that a field will be prefilled with the current user on a existing record.So in my Business Rule I wrote:current.assigned_to.setValue(gs.getUserID());Now if the user ope...

mennoaret by Kilo Explorer
  • 3871 Views
  • 4 replies
  • 0 helpfuls

Can a Database View be used to create a Self Join?

Is it possible to create a Database View that implements a table self join? For example I would like to find all sys_user records where there are duplicate email addresses(the incoming email to user matching process obviously has a problem with dupli...

Documentation for GlideXML objects?

We have a need to parse XML data in some of our javascripts.I have seen a few references in the wiki to glide helpers such as GlideXMLUtil and GlideXMLDocument in various code samples.Is there any documentation that provides descriptions of the avail...

RobertBarnes by Mega Contributor
  • 3322 Views
  • 3 replies
  • 0 helpfuls

Condition Builder in a custom table.

I watched the Gamification of IT webinar the other day (if you didn't, be sure to watch the recording!) and I want to build my own version.What really caught my eye was that they had a Condition Builder on a custom table. I had no idea such a thing w...

Uncle Rob by Kilo Patron
  • 5769 Views
  • 2 replies
  • 6 helpfuls

How to get Incident_Metric data via SQL / ODBC?

We need to be able to pull in data which shows every single Assignment Group that has worked on an IncidentTo do this we were directed to Reports section of Service Now and told to work with the 'Incident_Metric' view.I was able to successfully setup...

srudenko by Kilo Explorer
  • 3803 Views
  • 10 replies
  • 0 helpfuls

Delivery Plan Schedule

When personalizing the sc_req_item form, there is a form object labeled 'Delivery Plan Schedule'. When adding this to the form (by default it is added to the Self Service form), it display a summary of the Tasks associated with the Item.I want to be ...

Chris York by Tera Expert
  • 3530 Views
  • 4 replies
  • 0 helpfuls

List Control condition scripts

Hi,I am modifying a list control and within my Omit New Script, I want the list of the new roles that are currently set for the list control.I want to avoid making a trip to the server to query the table just to get the value of the field when I am a...

lmbaxter by Kilo Explorer
  • 3428 Views
  • 4 replies
  • 0 helpfuls

Query for empty table

HiI need the sys_ids from table 'service_offering' that have no entry in the related table 'service_subscribe_company' (m2m relation).I tried the following: // Seek active services without subscribtion var ysys = ''; var gr1 = new GlideRecord('servic...

swiss_smile by Kilo Explorer
  • 1718 Views
  • 9 replies
  • 0 helpfuls

How to obtain current time and user timezone in Client Script

Hi,We are looking for some date comparison validations in Client Scripts.We are facing an issue where we need to obtain current date/time value for user. The issue is that:1. We do not want to use Ajax calls in client scripts2. If we obtain date/time...

agarwm by Kilo Contributor
  • 5131 Views
  • 4 replies
  • 0 helpfuls

Adding additional record to a GlideRecord object

I'm attempting to query the category->catalog items join table to get a set of request items that i can then pass to a list and display on a page. All I need is the request items. I'm trying to query the sc_cat_item_category table to get my list and ...

jbyates by Kilo Explorer
  • 2451 Views
  • 5 replies
  • 0 helpfuls