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

Forum Posts

Resolved! Referencing Service Catalog Variables in Workflow

We have a Service Catalog to request various Telecom Requests.   I am building a Workflow, based on the Requested Item that is created from the Request.   I am trying to add an IF Action that checks to see if the request was for some special software...

jmiskey by Kilo Sage
  • 4743 Views
  • 29 replies
  • 3 helpfuls

Resolved! evalJSON not supported in Service Portal

Hello, We have several Client Scripts that call a Script Include to process data and send a response.We use the evalJSON function to transform a JSON string to an object.However, evalJSON is no longer supported in the Service Portal.Is there a way to...

Katie A by Mega Guru
  • 7805 Views
  • 4 replies
  • 19 helpfuls

Resolved! filter metric instance using dot-walking

I am unable to filter the metric instance using the table REST API on a dot-walked field.Example (filtering metric_instance fields to a specific incident number)https://[instance].service-now.com/api/now/table/metric_instance?sysparm_query=id.number%...

markledwich by Giga Contributor
  • 3372 Views
  • 3 replies
  • 1 helpfuls

List collector field type

Hi All,I have a custom table where one field type is list and a record producer which has a variable type list collector. When I submit the list collector it is giving sysids for the variable.   Please let me know if I need to change the field type.R...

SNow35 by Giga Guru
  • 6628 Views
  • 6 replies
  • 0 helpfuls

Resolved! UI Macro(button) Opening a new record?

Hi All,We have a requirement to dynamically display buttons based on conditions. Steps we have performed to get this done.1)Created a UI Macro & Formatter2)Created client templates based on conditions.3)Opening the Email Template using popupOpenEmail...

find_real_file.png
urmilla by Kilo Guru
  • 2229 Views
  • 2 replies
  • 4 helpfuls

Try Catch Throw in ServiceNow

So I've setup a code in a try-catch statement where it throws the code if it passes the given if-statement:if(requestEntry.cmdb_ci == null) throw "CI is missing";Seems correct right? But when I've executed the test on the code, a certain error came o...

rcruzsnow by Kilo Contributor
  • 5789 Views
  • 2 replies
  • 0 helpfuls

Resolved! Creating comments on an Incident via the REST API

I am trying to add to the comments on an incident via the REST API, but can not clearly see how to do this. If I post a new incident and add to the "comments" field, it does not persist. Does anyone know of a way to do this? Thanks.

bscharm by Kilo Explorer
  • 19116 Views
  • 11 replies
  • 2 helpfuls

Resolved! Outbound REST request fails with no error message

Hi,I'm trying to trigger a business rule which executes on addition of notes/additional comments on an incident and should Ideally send the latest note through the REST API to another system.I've created a business rule which executes okay but I'm ge...

find_real_file.png find_real_file.png find_real_file.png
karanpreet by Tera Guru
  • 5066 Views
  • 5 replies
  • 0 helpfuls

How to add a work note to an incident via REST Table API?

Hello,I am trying to add a work_note to an Incident via REST Table API.UPDATE /api/now/v1/table/incident/<incident_id>{'comments': 'test1', 'work_notes': 'test2'}Now my incident has Additional comment with "test1" text, but does not have a Work note...

andriyko by Giga Contributor
  • 11681 Views
  • 3 replies
  • 2 helpfuls

How to Increase SNMP Probe Timeout?

Hi,How to Increase SNMP Probe Timeout?Cannot find these properties : mid.snmp.session.timeout mid.snmp.request.timeout Please can you let me know how to update these values?

find_real_file.png
arnabbose by Tera Expert
  • 7069 Views
  • 3 replies
  • 6 helpfuls

Resolved! Give users ability to clear their own shopping cart

Hi,After upgrading from Eureka to Helsinki we've had a lot of issues with users' shopping carts being corrupted, causing the requested for on new service catalog requests to be read only and populated with the previous user they entered a request for...

while(gr.next()) does not loop through table record

Team, I need some help with a script.Creating a new Business Rule to first return the roles assigned to current group based on a record field change. Some enhancements to follow. But for now the while(gr.next()) does not loop through the table record...

JahanzebB by Mega Guru
  • 9892 Views
  • 7 replies
  • 1 helpfuls