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

Forum Posts

Time interval of archive run

Archive rule for closed alert is created, its running once in 1 hour, So that closed alerts are archived once in every hour,can we change the time interval, so that alerts can be archived in 15 mins ?

saranyadevic by Kilo Contributor
  • 2564 Views
  • 3 replies
  • 1 helpfuls

How to use gs.getSession() functions for other users?

We already have a script that cache certain items on our CMS portal. I am going to design a UI Action (button) on sys_user form. Clicking this button should do the following and clear the portal cache for that particular user. The problem is that I a...

mkhan123 by Kilo Contributor
  • 4786 Views
  • 10 replies
  • 0 helpfuls

Resolved! How to close a task and end a workflow

Is there a way to close a Task and end a workflow, and also close the Request Item? We have a Service Request for mobile email access. The workflow starts off with a Catalog Task.   The Task is there in case the user has a question about our mobile e...

Resolved! How to get the text of label tag using for attribute

Hi Everyone,I need to get the text of <label> tag which has "for" attribute but doesn't have id. There are many other similar nodes, with only the "for" attribute differing.I have 2 radio buttons, when i click on the radio button, i am fetching the i...

zvcxcxv by Kilo Contributor
  • 8660 Views
  • 5 replies
  • 0 helpfuls

Resolved! To activate tabbed form and compact view for all users

Hello All,We have upgraded our instance to "Helsinki" and now we want to set tabbed forms and compact view to true for all users. I have checked under user preference for tabbed.forms   and   set the value as true however it's not reflecting. For com...

shraddhap by Tera Expert
  • 5564 Views
  • 6 replies
  • 8 helpfuls

Resolved! Usage of GlideRecord.update()

Hi Community,The ServiceNow Product documentation for the update function in a GlideRecord is as follows:As far as I can tell, the reason parameter doesn't seem to do anything despite the documentation.When I open up the audit history for an update w...

find_real_file.png find_real_file.png find_real_file.png
paulmorris by Giga Sage
  • 36454 Views
  • 6 replies
  • 2 helpfuls

Resolved! REST API POST using JSON

Asking the community for assistance on this one. For this integration to a 3rd party provider of computer equipment, I need to structure anoutbound POST REST message using nested objects and arrays (see the required JSON structure below). I've begun...

johnhughes1 by Mega Contributor
  • 5842 Views
  • 6 replies
  • 0 helpfuls

Resolved! XMLDocument no longer works

I recently upgraded my instance to Istanbul.   After doing that the sensor script I had in my SOAPMessage Activity suddenly stopped working.   The error message I receive is org.mozilla.javascript.WrappedException:Wrapped ReferenceError "XMLDocument"...

dbrennan by Kilo Contributor
  • 3578 Views
  • 8 replies
  • 2 helpfuls

How do use gs.monthsAgoStart?

Hello,I am having trouble understanding how to use the gs.monthsAgoStart() I am just trying to find the date 3 months from today.var newTime = new GlideDateTime();     var startTime = gs.monthsAgoStart(3);Not sure where I am supposed to put my newTi...

zsquared by Tera Contributor
  • 3471 Views
  • 5 replies
  • 0 helpfuls

How to get Base64 content of all attachments on Incident?

I have been reading about 'GlideSysAttachment.getBytes()', but it started to confuse me. As far as I understand it should be called like this:var sa = new GlideSysAttachment();var bytes = sa.getBytes(attachment.getValue("table_name"), attachment.getV...

Resolved! inbound action not working

Trying to build an inbound action to create an incident, i'm using our test environment, I have copied the existing inbound action sample and only added a filter for what the subject contains to assign it to a special group. the action is set to acti...

benolsen by Kilo Contributor
  • 3963 Views
  • 15 replies
  • 5 helpfuls

Resolved! Why is my try catch not catching the RuntimeException?

Something very very weird is going on. Despite my try/catch block, the RuntimeException is still thrown and not caught... How do I catch it?Evaluator: java.lang.RuntimeException: String object has exceeded max size of 16777216   Caused by error in sc...