Questions tagged [servicenow-rest-api]

202 questions
0
votes
1 answer

How to set a value to reference field in service now epic or user story using rest api

I need to set a value in service now user story type for epic or parent (any reference) field using create or update request of REST API in c#. I have tried setting the link and the value to the epic field to JSON object using c#…
reach2saurabh
  • 153
  • 1
  • 11
0
votes
1 answer

ServiceNow Scripted REST API GET with Body

I setup a GET scripted rest API. However, when I try to send a GET request with a body, ServiceNow (before it hits my code) complains that GET is not allowed to have a body. Is there a way to disable this restriction? For now as a temporary…
joseph
  • 2,429
  • 1
  • 22
  • 43
0
votes
2 answers

API return link instead of Name

I am new in this field, please help. when i am trying to get value from incident table using servicenow REST API instead of Name in assigned_to field i get a link. how can i get name using REST API. i am using python Query url =…
user10989738
  • 81
  • 1
  • 11
0
votes
1 answer

Service Now: Uncaught ReferenceError: func is not defined

I have an issue when I order/add to card on one catalog service item . In fact, I am using a custom 'Catalog Client Script' on the onSubmit action to control if the customer added or not a attachment. Please find below my client script: Script…
GoA Oz
  • 328
  • 1
  • 13
0
votes
1 answer

explanation on HTTPS Records Query

Can anyone please explain how first set, previous set, next set, and the last set of records can be used to query HTTP rest message data. what exactly does this do? I got some information in ServiceNow website, where i am not able to…
0
votes
1 answer

Handle more then two requests simultaneously with HttpClient

Whenever I have the following calls in one getmapping method in my restcontroller made in Spring boot, it never gets executed. It works perfectly when I comment out one out of the three. It doesn't matter which combination, they all work but maximum…
Ayoub Rossi
  • 410
  • 5
  • 18
0
votes
2 answers

Want to check if user inactive then same user id will not create in SERVICENOW

When a new user joins the company, there is a request created by RITM. Where it create user id's by name but I think it didn't check user id which is deactivated. Kindly let me know how to achieve above in the quickest way in servicenow under…
Rai G
  • 1
  • 1
0
votes
1 answer

How to call Other Application API from Script in Service-Now

I write some API using Django in Python, I want to call this API's from service now from script. I try to call my API using jQuery but it is not wokring for me, i search on net they said use $j as jQuery in service-now but it is also not working. i…
Sagar T
  • 89
  • 1
  • 1
  • 11
0
votes
1 answer

How to use service-now Table API with Java?

I am using demo instance to query service-now. Using cURL works fine, but I want to use java to query the Table API. I have followed this. I have provided my instance credentials and the instance name correctly. I get error like this: $ javac…
user9246895
0
votes
1 answer

How to clone whole instance ServiceNow

Can I copy/clone the whole instance from one to different? How can I do that? Is there any widget? If anyone can help me, that would be great.
0
votes
1 answer

nested json parsing in javascript

I am using the below code for REST OUTBOUND call and this is working as expected. but i am trying to parse the second response body but i am unable to retrieve the values under objects. try { var r = new sn_ws.RESTMessageV2('test', 'post'); var…
0
votes
1 answer

Invoke-RestMethod uploading CSV in ServiceNow

I tried many ways of uploading a CSV file to ServiceNow using PowerShell via Invoke-RestMethod and Invoke-WebRequest; however, I have hit a wall. When I call the functions, I receive the following error: "Invoke-RestMethod : The remote server…
Engah
  • 35
  • 2
  • 8
0
votes
1 answer

Static date format when submit on Servicenow form

We do have a multiple forms on servicenow that has a date field. All date field could only accept this default format YYYY-mm-dd. And when the user will going to change the default date format on their servicenow profile/settings and then fill-up…
0
votes
0 answers

List of Keys differs in JSON response from REST API

I use requests library to fetch JSON response from REST API. My code: import json import requests response = requests.get(url, params=payload, auth=(user, pwd), headers=headers ) data = response.json() with open(completeName, 'w+') as fd: …
0
votes
0 answers

How to add a property in ServiceNow which calls REST API of another application for look up?

I have an application (JAVA application running on tomcat) which has SACM and ITSM modules similar to servicenow. From my application I am calling servicenow APIs to look up data and create new records in servicenow. Does servicenow allow it vice…
Jerry
  • 987
  • 4
  • 16
  • 46