ServiceNow

'Exception while reading request', 'detail': 'Cannot decode: java.io.StringReader@1aac9ea'}, 'status': 'failure'}

元气小坏坏 提交于 2021-01-29 11:12:12
问题 My first question is, what does "cannot decode: java.io.stringreader" mean? My second question is, why do some strings work and others do not? I'm guessing that there's an issue with python passing certain strings with d0rked encoding? My third question is, am I converting the XML values correctly before passing them to the REST body? I'm taking XML files from a directory, parsing the XML, then populating a REST post to a ServiceNow instance. Essentially I'm bringing a TON of legacy tickets

JAXB Unmarshalling issues with XML attributes

人走茶凉 提交于 2020-07-18 20:14:05
问题 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: <unload> <change_request> <active>true</active> <approval>not requested</approval> <assigned_to display_value=""/> <alt_poc display_value="Tom Ford">056468745677484657</alt_poc> <poc display_value="Matt Ryan">56465148754878</poc> </change_request> </unload> I assume that in my ChangeRequest class

How to render background image in mobile

六眼飞鱼酱① 提交于 2020-04-16 02:55:07
问题 On the web page i have a background image which is not rendering properly on mobile view body { background-image: url("https://www.rafflesmedicalgroup.com/images/default-source/default-album/wuhan-virus-background.jpg?sfvrsn=2"); background-size: cover; background-position: center; } In Web page it is working perfectly but not in mobile 来源: https://stackoverflow.com/questions/60830277/how-to-render-background-image-in-mobile

How to pass values from Server to HTML in Servicenow Service Portal

Deadly 提交于 2020-03-28 06:40:31
问题 I am able to pull in data in server side that data i want to set in the HTML table boxes which we created. Below is my HTML code which creates table with row and columns. <div class="panel panel-body"> <h2>Book Rooms v1</h2> <table border="2" class="table m-b-lg"> <thead> <tr> <th>Serial Number</th> <th>Title</th> <th>End Date</th> </tr> </thead> <tbody> <tr> <td>Book_ticket</td> <td>x: y</td> <td>p: q</td> </tr> </tbody> </table> For an example assume this is the data i got in Server side.

Need help on building dynamic search box using bootstrap in Service portal

给你一囗甜甜゛ 提交于 2020-03-25 18:25:14
问题 I am currently working in Servicenow Serivce portal where it support Angular I am able to create a Search box using bootstrap as shown below: Server Code: (function() { /* populate the 'data' object */ /* e.g., data.table = $sp.getValue('table'); */ try { var r = new sn_ws.RESTMessageV2('coronaAPI', 'Default GET'); var response = r.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode(); gs.log(responseBody + "respno"); data.responseBody =responseBody; var

Need help on building dynamic search box using bootstrap in Service portal

前提是你 提交于 2020-03-25 18:25:14
问题 I am currently working in Servicenow Serivce portal where it support Angular I am able to create a Search box using bootstrap as shown below: Server Code: (function() { /* populate the 'data' object */ /* e.g., data.table = $sp.getValue('table'); */ try { var r = new sn_ws.RESTMessageV2('coronaAPI', 'Default GET'); var response = r.execute(); var responseBody = response.getBody(); var httpStatus = response.getStatusCode(); gs.log(responseBody + "respno"); data.responseBody =responseBody; var

ServiceNow API - Get required/mandatory fields and data

人盡茶涼 提交于 2020-01-24 00:24:28
问题 We are looking for a ServiceNow API to get all required/mandatory fields and its data, that a user has to provided before creating a new incident. Refer to this image: Example: required/mandatory fields --> [Category, Subcategory, Impact, Urgency, etc ...] Data of fields: Urgency --> [1: Critical, 2 - High, etc …] Category --> [Security, Repair, Remove, ….] 回答1: Normally this information is stored in the dictionary (right click field label -> dictionary). So you could a request to table sys

GetRecords that are approved in ServiceNow API

╄→尐↘猪︶ㄣ 提交于 2019-12-24 12:53:54
问题 ServiceNow - GetRecords Code: var proxy = new ServiceNow_dmn_demand() { Url = "https://<instance>.service-now.com/dmn_demand.do?SOAP", Credentials = new NetworkCredential("username", "password") }; var objRecord = new Service.getRecords { // Here, I want to filter the records that are approved.. }; var recordResults = proxy.getRecords(objRecord); I am getting all the records. I want to get the records that are only approved . But I don't know the exact field name used to filter the Approved

How to trigger ServiceNow workflow from ui action?

∥☆過路亽.° 提交于 2019-12-24 02:18:06
问题 I am getting started with workflows in ServiceNow. I can see that the trigger for at workflow is based on conditions. But can a workflow be triggered by some sort of user action, i.e. a UI Action/button or through a script? 回答1: There's a Workflow object accessible server side that you can use to start a workflow that's documented here. Here's an example from that wiki article: // where current is a task record with a workflow context var w = new Workflow(); var context = w.startFlow(id,

Workflow for Servicenow Incidents

允我心安 提交于 2019-12-13 03:36:52
问题 I was just checking for the feasibility for workflows on Incidents and found this post. It seems it is possible to have workflows on incidents. I just need to know is there any proper way to do it..I am kind of new bee to Servicenow. anyone share the experience and how can I achieve this. For instance, a simple approval workflow on the Incident.. Thanks in advance Chitra 回答1: A few basic changes can get this going, since the Incident table has the Approval fields and such associated to it.