Questions tagged [servicenow]

ServiceNow is a cloud-based IT service management company. it should not be used; specific ServiceNow product tags should be used instead.

http://www.service-now.com/

ServiceNow integrates with many third party applications and data sources. The most common integrations are with CMDB, Incident Management, Problem Management, Change Management, User Administration, and Single Sign-on.

A variety of techniques can be used, most notably Web Services, JDBC, LDAP, Excel, CSV, and Email, as well as any industry standard technologies that use SOAP or WSDL. Additionally, API and command-line integrations can be done using a MID Server. ServiceNow has performed the following integrations with enterprise systems and platforms.

ServiceNow provides APIs as JavaScript classes, Java classes (that can be used in JavaScript), web services, and other points of connection for integrations. Note that you cannot access commonly used JavaScript objects (such as DOM or Window). Jelly scripts are also used in some modules. Jelly is used to turn XML into HTML and may include both client-side and server-side scripts.

1032 questions
10
votes
4 answers

window.open() parameters not working in Edge

In Servicenow, I have a requirement to open a new window from a UI action. 1. Open in New window (not tab) 2. Display the navigation toolbar (buttons) 3. Display scrollbars 4. Be resizeable Using var window = window.open(url, windowName,…
10
votes
2 answers

How can i call VBscript from Javascript

I have searched the threads here but could not find anything remotely related to what i am trying to do. Basically i want to call vbscript using javascript for the onClick. Is there a way to call aVBScript for the onClick event from a button that…
Drew
  • 113
  • 1
  • 1
  • 7
8
votes
2 answers

Stop WKWebView redirecting to another app based on Universal link

We are using WKWebview to custom load and manage our ServiceNow instance, but however while login succeeds, if user has "ServiceNow" mobile app installed post login it opens ServiceNow app. Tried blocking the final Url navigation…
ibiren
  • 673
  • 6
  • 25
7
votes
2 answers

Service Now add tag to incident through rest api

I am trying to add a tag to a service now incident, but I can't find any documentation for it anywhere. I have looked at the label and label_entry tables in the incident api. And I can not seem to tie an incident and a label together.
Jonas Olesen
  • 568
  • 5
  • 25
7
votes
0 answers

Is it possible to set up a Servicenow page so all subroutes are handled by the root page?

Given a simple page created in Servicenow with the following config: Name: My Page Url Suffix: my-page Layout: foo Inside of foo, I am loading in a single page application, with various routes such as /invoice/1, invoice/2, user/1, user/2 and so…
Chris
  • 54,599
  • 30
  • 149
  • 186
7
votes
1 answer

JAXB Unmarshalling issues with XML attributes

I am having an issue unmarshalling with JAXB for an XML file. There is an attribute on some of the xml elements called "display_value" which I need to obtain. Here is a small example of the XML file:
user1117891
  • 83
  • 1
  • 4
6
votes
2 answers

Restart an async Task after certain time passes before completion

So, I've been working on an app that consumes REST API requests, however, for some reason, the API gets unresponsive randomly (sometimes it gives a response within 3 seconds and sometimes the request will take so long that it throws a…
callencx
  • 63
  • 3
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…
6
votes
2 answers

Retrieving text State from ServiceNow REST API

I'm building a fairly simple REST app for ServiceNow. Using the REST API Explorer (great tool!) and some examples on here I've been able to connect and raise Incident records with all the field information I need. The only thing I can't seem to wrap…
Rudy
  • 63
  • 1
  • 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
  • 445
  • 2
  • 9
  • 27
5
votes
3 answers

ServiceNow - how to write a select query retrieving values from 2 tables

I'm new to ServiceNow but I know SQL and it just doesn't make sense that I was unable top find such a simple query example for ServiceNow on their official site and google. Is there any way for JOIN or just checking if X field from table 1 equals Y…
Natalie
  • 163
  • 1
  • 3
  • 15
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…
4
votes
2 answers

How to use urllib3 to POST x-www-form-urlencoded data

I am trying to use urllib3 in Python to POST x-www-form-urlencoded data to ServiceNow API. The usual curl command would look like this curl -d…
RaysOdyssey
  • 41
  • 1
  • 2
4
votes
1 answer

ServiceNow : Jelly Error

I want to print the elements from an array , using foreach loop it is giving error "The prefix j for element j:foreach is not bound". Below is the code which I wrote:
infiniteLearner
  • 3,555
  • 2
  • 23
  • 32
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
1
2 3
68 69