Questions tagged [servicenow-rest-api]
202 questions
                    
                    6
                    
            votes
                
                1 answer
            
        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
- 5
                    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
        
- 445
- 2
- 9
- 27
                    4
                    
            votes
                
                2 answers
            
        Create KB article via ServiceNow Table API
We're trying to create ServiceNow KB article  using ServiceNow Table API
url = 'https://devXXXX.service-now.com/api/now/table/kb_knowledge'
Currently we're passing html content data (with tags) in ‘text’ field and able to create KB…
         
    
    
        Svenom
        
- 41
- 1
                    4
                    
            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
        
- 878
- 13
- 39
                    4
                    
            votes
                
                1 answer
            
        How to download CSV using REST API?
Here's a REST API that I am trying for downloading data as CSV file.
(function process(/*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
    var data = '\n'; // workaround to separate  start tag on first line
    data +=… 
         
    
    
        Nikhil Vartak
        
- 5,002
- 3
- 26
- 32
                    3
                    
            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
        
- 85
- 2
- 10
                    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
        
- 125
- 2
- 8
                    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
        
- 2,269
- 21
- 28
                    2
                    
            votes
                
                1 answer
            
        TypeError: fetch is not a function when running Client Script in ServiceNow
I am working on an application in ServiceNow where I have the following UI:
I have to make a POST request when Submit is pressed. Till now I have got the following lead to make a request.
You can use the native Fetch API to make arbitrary HTTP…
         
    
    
        JAMSHAID
        
- 1,258
- 9
- 32
                    2
                    
            votes
                
                2 answers
            
        Unable to get total result count in service now
I am unable to get total result count in service now Rest api. I am creating  query but It return the results .I want to get the results with total result count So that I may implement…
         
    
    
        Rahul Kumar
        
- 65
- 3
- 11
                    2
                    
            votes
                
                2 answers
            
        ServiceNow REST API: Get list of column names
From the admin UI, there is a Tables and Columns explorer that dutifully shows all available columns for a table, such as the incident table:
My ultimate goal is to be able to query all fields for a given table that I can insert data to (mostly…
         
    
    
        Tim
        
- 412
- 7
- 18
                    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
        
- 328
- 1
- 13
                    2
                    
            votes
                
                1 answer
            
        ServiceNow integration with C# and dotnet core application
protected void Button1_Click(object sender, EventArgs e)
      {
//Incident Service
        IncidentService.ServiceNowSoapClient soapClient = new IncidentService.ServiceNowSoapClient();
        soapClient.ClientCredentials.UserName.UserName =…
         
    
    
        MAK
        
- 29
- 9
                    2
                    
            votes
                
                1 answer
            
        Is it possible to make ServiceNow REST calls using SSO?
I am using ServiceNow REST API calls to get ServiceNow records inside my application. My application takes username,password and domain url of their servicenow account from the user to do this. I have this situation where one of my client uses…
         
    
    
        Jerry
        
- 987
- 4
- 16
- 46