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

Changing or Creating a new getMyGroups() function

I was curious to see if anyone had created a new getMyGroups() function and if so how they did so. We are running into issues where we want to get a users groups but we do not want to pull back the parent groups. With the current function it will pul...

Hide Attachments based on Assignment Group

I have a request that I am trying to fulfill, but am having trouble coming up with something. Does anyone have any scripts or any ideas on how to make this happen?I need to hide all attachments on an incident ticket when the Assignment Group= a certa...

dandubay by Kilo Contributor
  • 2809 Views
  • 4 replies
  • 0 helpfuls

Append to the short description via client script

I would like to append text to the current "short description" of a task from a client script. Below is what I have:function onSubmit() { var action = g_form.getActionName(); var task_state = g_form.getValue('state'); var task_sd = g_form.getValue(...

Understanding how cmdb_ci_rel works

I have been trying to understand the way cmdb_ci_rel keeps track of directionality between related CIs. Two things are tripping me up:1) The columns are named Parent and Child, but the relationship type *sometimes* implies the inverse.2) There are ou...

JeffOnline by Tera Contributor
  • 4702 Views
  • 6 replies
  • 0 helpfuls

How to rename Related List Label by Client Script

Hi,is it possible to rename a label of a related list on the form using client script? I have a custom cmdb with objects related to itself in "parent" field. These have a type field.I would like to change the Label due the type of related objects. Be...

Kostya by Tera Guru
  • 2211 Views
  • 3 replies
  • 0 helpfuls

Get Display Value from Choice List

Hello,I created a UI Action where I query a table from the CMDB and update data on a form with the results on a Catalog Task page. One of the values I am retrieving is a Choice List and I would like to get the display value and populate on the other ...

mdidrikson by Kilo Contributor
  • 5312 Views
  • 3 replies
  • 0 helpfuls

Creating a OK/Cancel dialog box

Hi everyone, I created a simple UI action that works the way it should. When a user clicks on the button, I want them to be greeted with an OK or Cancel dialog box. Ok would continue with the action and cancel would obviously keep them on the same sc...

Mikolz by Kilo Contributor
  • 5045 Views
  • 4 replies
  • 1 helpfuls

getEventTarget() called with invalid table name:

I have created a business rule which checks periodically if a change request is still open 24 hours after its end_date. If so it fires an event that sends out an email notification.The problem I am having is when the business rule runs and fires the ...

bburdick by Mega Guru
  • 4408 Views
  • 6 replies
  • 3 helpfuls

Adding conditions to an URL

Hello everybody.At the moment I am trying to pull data from a service now instance through a .net script that was provided by the Service Now wiki.In that script is a url to which the script runs to get its data. In my case i get the data in a CSV fo...

Peekster by Kilo Explorer
  • 1580 Views
  • 2 replies
  • 0 helpfuls

Call to API only returns Exception: HTTP 302: Found

Executing any API call (I have tried several) only returns the above mentioned HTTP 302. The following code is typical of the attempts. the credentials have been marked out for security. What does 302 REALLY mean in this instance and how do I allevia...

Insidious by Kilo Contributor
  • 3713 Views
  • 2 replies
  • 0 helpfuls

Assign user to Servicenow Group based on Windows AD Group

I'm looking to assign users to a group in servicenow based on what group they are in AD. The reason for this is the AD group names aren't what we want for servicenow. We have about half a dozen groups so a script that looked for certain AD group name...

SquishyDave by Kilo Explorer
  • 2172 Views
  • 3 replies
  • 0 helpfuls

Toaster popup for notifications

Hi Service-now.com community. I am just curious to see if any of you have thought of (or even configured) a toast style popup for notifications from the system? For example, in order to notify a user that a ticket has just been assigned to them, rath...

amurray by Kilo Contributor
  • 2986 Views
  • 3 replies
  • 0 helpfuls