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

Forum Posts

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
  • 38490 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
  • 6391 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
  • 4165 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
  • 3896 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...

Change a work note on update???

I think I have gone off my rocker again.   I'm trying to do a search and replace when work notes changes and what I get is thisUser EntersHi there replace this.System adds to the work notesHi there replace {DELETED}.Hi there replace this.So how do I ...

DrewW by Mega Sage
  • 3252 Views
  • 8 replies
  • 1 helpfuls

Resolved! Putting Catalog Item Variables in a Mail Script

Hello all!What I am ultimately trying to do is utilize the Approval User functionality in the workflow. The issue that I am having is that I can't get the specific variables I want to appear on the approval email. The variables that I want to appear ...

Resolved! hiding coumns in personalise list column window

Hi everyone,I have a requirement where i want to hide the domain or say any particular   field for the itil user in the list view.i want in case of itil user,in personalizing list column slush bucket, the domain field should not be present or greyed ...

gurvinder by Kilo Contributor
  • 3725 Views
  • 5 replies
  • 2 helpfuls

Resolved! Use existing field in Story table to Defect table

Hi All,I am trying to use an existing field [Business Analyst] in the 'Story' [rm_story] table to the Defect [rm_defect] table. But within the 'rm_defect' table form layout 'business analyst' field is not available in the form layout. I have check th...

Ramel by Mega Guru
  • 3835 Views
  • 6 replies
  • 2 helpfuls

Service Portal, Git integration - Best practices

Interested in what's the best practices when using version control and having multiple developers, but only one/two instances:Is working out of a personal development environment frowned upon?If we can only work out of one instance or two instances, ...

josephdt12 by Giga Contributor
  • 6000 Views
  • 5 replies
  • 4 helpfuls

How to call a UI action from a script?

I have a script which requires to trigger specific UI action. How can I do this?I see on the wiki page which say action name "Defines a name to use when referencing the UI action in scripts".