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

Forum Posts

Scripted REST API not able to access request

I have created a Scripted REST API to get user criteria for a user. The script I'm using is: (function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { var queryParams = request.queryParams; var userID = String(queryParams.user); r...

Shaan2 by Tera Contributor
  • 3036 Views
  • 6 replies
  • 0 helpfuls

Resolved! html field not passing data across via api

Afternoon all Im working on an ServiceNow to ServiceNow integration via Rest API. I have a field 'implementation plan' on my side which is a string field. On the Customers side the 'Implementation Plan' field is a HTML field. When i create my record ...

CandyDee by Kilo Sage
  • 1967 Views
  • 4 replies
  • 2 helpfuls

Resolved! Formatting Date in Client Script - Losing 1 day

So I am using a call back function in an onChange Client Script to grab some data from a table and populated fields on the form.  Well the Date fields from the table were coming in the wrong format (yyyy/DD/mm I believe) so I worked to fixed that and...

Resolved! How to query from most recent worknotes activities

Hi,I'm doing a query from an IF statement workflow to get information from RTIM notes activities.The script script is working but I would like to be able to query only the last activity (most recent).The reason is in some cases, the workflow will nee...

Andre6 by Mega Expert
  • 2755 Views
  • 7 replies
  • 2 helpfuls

About Interaction Number (IMS)

If we create case through Virtual agent then IMS Number is generated and it is reflected in worknote but if we create case through front end  then IMS Number need not to be generated. what we have to do to remove IMS number if we create case through ...

Screenshot 2022-12-08 182552.png
Darshana2 by Tera Contributor
  • 4720 Views
  • 1 replies
  • 0 helpfuls

What role do I need to access sys_user table?

I'm using the REST API to get all information from the Sys_user table. To access all information from sys_user table, I only can get it if I have the role ADMIN on my service account user. I want to access it with fewer privileges and less intrusive,...

rafasalo by Giga Contributor
  • 10208 Views
  • 6 replies
  • 0 helpfuls

Handle errors from script Include to business rule

I need to handle 500 error of  script include in business rule, i need your help to do it, i have these 2 functions in my include script and i want to call them in my business rule only when insertUser gets 500 error how can i do it?:i tried to do it...

Resolved! Resolve Child incidents if Parent is resolved

There is the 'Update Child Incidents' business rule what is being triggered when parent incident get comments, work notes or changes status to resolved. But if child incident is for example suspended status t won't resolve the child as it is against ...

Wasd123 by Tera Expert
  • 2363 Views
  • 1 replies
  • 1 helpfuls