Questions tagged [servicenow-rest-api]
140 questions
6
votes
0 answers
Accessing multiple service instances through a single application via OAuth for REST
I want to create an application in serviceNow(like Facebook) which through OAuth will be able to call the REST APIs for different instances.
Suppose, I create an app in instance A of servicenow, now through proper OAuth and permission mechanism, I…
Junaid Buriro
- 91
- 4
5
votes
2 answers
Use Powershell to download attached excel file from Servicenow ticket
I'm currently working on a powershell script that should be able to download an attached excel file from a service now ticket, before I explain more please see the basic flow of the automation below.
The user will be asked to enter the ticket…
Kent Abrio
- 337
- 2
- 7
- 22
3
votes
2 answers
ServiceNow Rest API - date filter - doesn't work
How do we retrieve the incidents for the last 1 hour through rest api ?
The following filter doesn't seem to work and returns every incident…
Maddy
- 105
- 1
- 7
3
votes
2 answers
Is there any out of box SNOW(Service Now) api to create catalog item and its variables?
For e.g. , I want to create a catalog items under a category named "Backpack".Let's say I want to create a "Catalog Item" named "American Tourister" under the "Category" named "Backpack".I want to add the attributes like "colour","type" of these…
Ishaan
- 31
- 2
3
votes
2 answers
ServiceNow renaming attachment not getting SysId
In ServiceNow, I have written script in business login - script actions.
While adding and deleting I am getting sysId but when renaming the attachment I am not able to get sys_id.
sendnotification();
function sendnotification()
{
try
{
…
Nayas Subramanian
- 1,901
- 16
- 24
2
votes
1 answer
WebFlux WebClient with Generic Types
I'm trying to make a Client Library with WebClient from Spring WebFlux.
Server return responses like this JSON:
{
"result": [
{
"parent": "",
"made_sla": "true",
"watch_list": "",
"upon_reject": "cancel",
…
OscarRP
- 53
- 5
2
votes
1 answer
POST binary file to ticket ServiceNow REST API - Remove boundary and Content-Type
I am trying to attach a binary file (Excel, MS-Word or Image or anything) to ServiceNow ticket using the POST method available in their REST API.
It works fine when I try to do that using Postman app, however, when I try to do that using C# code,…
SavindraSingh
- 530
- 6
- 30
2
votes
0 answers
Evaluation error: Caused by error in JavaScript probe
I am working on Mid Server with Service Now, I defined a 'Mid Server Script Include' Javascript Class and when I try to call it with a Background Script, I got this error message in ECC queue input:
Evaluation error: Caused by error in JavaScript…
GoA Oz
- 171
- 12
2
votes
1 answer
Powershell Rest API to ServiceNow Failing to Create Request
This is my first post on Stackoverflow, please let me know if my post is not formatted or submitted correctly, etc. I am attempting to use powershell to connect to my ServiceNow instance and POST a service catalog request. However, I am receiving…
Dustdreams27
- 31
- 6
2
votes
1 answer
ServiceNow Rest API Timefield
I am trying to write a Rest API client where ServiceNow Database will be polled every 10 minutes to get the Data.
Below is the Url that I…
Pavan_Obj
- 829
- 7
- 18
1
vote
1 answer
ServiceNow KB in Azure cognitive services
Is there a way to integrate the ServiceNow KB in azure cognitive services? We want to use the ServiceNow KB as a knowledge base for Azure Cognitive.
iamayush
- 35
- 3
1
vote
1 answer
nodeJs basic authentication issue
I'm getting no proper response while make an API request to external API using basic authentication (username and password) in nodejs (javascript)
I used the below code and the response is "undefined", not sure what is missing here.
But I was able…
itgeek
- 169
- 2
- 19
1
vote
2 answers
Access JSON keys in C# from ServiceNow Rest API
I am calling the ServiceNow Incidents table and pulling back one incident like this. https://mydevInstance.service-now.com/api/now/v1/table/incident?sysparm_limit=1
var client = new…
TMAC 23
- 73
- 6
1
vote
1 answer
how send template from external system (Servicenow) to Docusign
I am currently working Servicenow to Docusign integration where a user raises request from Servicenow and i want to send a template to the requested user. I created my demo docusign instance & template, please help me with the api to trigger an…
Gousiya Begum
- 41
- 4
1
vote
0 answers
how to get Timestamp of Assignment or completion group in servicenow
I want to get Timestamp Assignment Group and Timestamp of completion assignment from service now for a RITM and task.
Could you please tell me the table and field name in service now?
Postman queries would be very helpful.
Upendra
- 43
- 7