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

Forum Posts

Resolved! Unable to parse result from response body

I have a REST message. I'm getting the data back in the response (see below). But when I try to parse the fields out so I can update the fields on my form, I get undefined.What am I missing?var response = restMessage.execute();gs.log(response.getBody...

clyon by Tera Guru
  • 5859 Views
  • 17 replies
  • 5 helpfuls

Resolved! Is it possible to set a 'read only' currency field?

I have a currency field called 'Total' that is read only.  The value of the field is the product of 2 other fields called 'Rate' and 'Hours'.  Total's value is updated by an onChange  client script, but the value is not saved because of the read only...

space before/after link in UI page

In UI page for below code there is no space before and after the link as shown in the attachment. Is there a way to add space?? <?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:...

User150433 by Kilo Sage
  • 6210 Views
  • 12 replies
  • 9 helpfuls

Resolved! Help adding a loop in workflow

I'm trying to create a workflow that will take a list and put it into an array, then loop through the workflow so it will create the change requests for each company in the list. I have tried just using workflow.scratchpad.company = <field_on_form_na...

Steve42 by Tera Expert
  • 1711 Views
  • 9 replies
  • 2 helpfuls

Unable to attach attachment to data source table.

Hi All, Target: generate attachment through third party integration and add it into data source. I am using below code to generate attachment through rest message and attache to data source but not getting attachment. when i am trying with incident t...

UID in email

  Hi Team,   Any idea from where UID is set in email? And why confidential once have a UID and rest doesnot have it?

find_real_file.png
Shristy1 by Kilo Expert
  • 3949 Views
  • 1 replies
  • 3 helpfuls

Resolved! I want to check the first day of month and Day of that week

I wrote a code :var gdt = new GlideDateTime();var date = gs.beginningOfThisMonth(gdt);gs.print(date);*and I get a perfect result however when I check which day the date comes on it gives undefined answer. for this I used:gs.print(date.getDayOfWeek())...

Sjoshi2 by Mega Contributor
  • 5382 Views
  • 4 replies
  • 0 helpfuls

Resolved! Formatting a date field in a Record Producer

Good Afternoon, I am having an issue where I have date fields on a record producer that users click on to populate with a calendar selector. Works great and displays the date on the portal in the MM-DD-YYYY format however once the item is submitted a...

Resolved! Best way to update multiple asset records

Service Now Gurus,I have the following issue:   We have recently added our hardware assets to SN, and we have assigned them to users, however we have noticed the Location field isn't being updated and long story short, we weren't pulling across our u...

Resolved! Parsing XML - nested tags

I am trying to parse some XML in a scoped application and create records in a table. Here's my XML: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc...

Sue Frost by Giga Guru
  • 3404 Views
  • 17 replies
  • 7 helpfuls

Record exists using GlideRecord

Hi, I am connecting to external app using REST and am parsing the response. Before inserting into CMDB, I want to check if the record exists and am trying to use this query. var isinsert=false; var commrecord = new commrecord("cmdb_ci_comm"); commrec...

maryc by Tera Contributor
  • 2516 Views
  • 5 replies
  • 0 helpfuls