ServiceNow

Basic Authentication does not work for Search API in Azure DEVOPS

牧云@^-^@ 提交于 2019-12-13 02:55:43
问题 Issue :Basic Authentication does not work for Search API in Azure DEVOPS API NAME : Work Item Search Results - Fetch Work Item Search Results API: POST https://almsearch.dev.azure.com/{organization}/{project}/_apis/search/workitemsearchresults?api-version=5.1-preview.1 Observation : it works fine when i use PAT (Personal Access Token) but does not when i use Basic Authentication in a REST Msg..I am doing all this in ServiceNow Error: Method failed: (/rahulreddy0193/rahul_1359/_apis/search

save a field value to a file on desktop

大兔子大兔子 提交于 2019-12-12 05:59:50
问题 I am developing a custom application in "ServiceNow" which requires Javascript and HTML coding. So, I have a field say, "description" on my form. How may I save this field's value to a word document on the desktop? 回答1: While JavaScript cannot create a file for you to download by itself, ServiceNow does have a way for you to create one. Creating a Word document is impossible without the use of a MID server and some custom Java code, but if any file type will do you can create an Excel file

How to edit Title in Fullcalendar

做~自己de王妃 提交于 2019-12-12 03:56:37
问题 I'm trying to use the fullcalendar library in ServiceNow and everything seems to be working fine, but there's something weird going on with the Title: Is there a way to get rid the undefinedundefined by making changes to the Title object? My current code is pretty simple: $('#calendar').fullCalendar({ header: { left: 'today prev,next', center: 'title', right: 'month,agendaWeek,agendaDay' } }) 回答1: I think you have used different version of full calendar css and js file. in this it works fine.

How to Download All Attachments from VSTS?

梦想的初衷 提交于 2019-12-11 19:09:44
问题 I am attempting to download all Work item attachments from VSTS into their own folder based on their ID number. If this is possible, how would one go on about achieving this? I've looked into rest API but have been confused, and it appears all documentation I've found is regarding Azure DevOps. I am currently on version 15.117.27024.0. I've provided some background info, and if that is not sufficient enough in diagnosing my problem, I will be more than happy to provide more. Thank you all for

ServiceNow - Getting all records

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:09:12
问题 In ServiceNow, I am able to get only a maximum of 250 records in a SOAP request. How to get all the records? Web Reference Url = https://*****.service-now.com/rm_story.do?WSDL Code: var url = "https://*****.service-now.com/rm_story.do?SOAP"; var userName = *****; var password = *****; var proxy = new ServiceNow_rm_story { Url = url, Credentials = new NetworkCredential(userName, password) }; try { var objRecord = new Namespace.WebReference.getRecords { // filters.. }; var recordResults = proxy

Get ServiceNow Records Powershell - More than 250

孤人 提交于 2019-12-11 10:17:23
问题 I am trying to retrieve more than 250 records from ServiceNow using Powershell cmdlet Invoke-RestMethod. Is there a powershell script that I can use ? 回答1: Old topic but perhaps this answer can still be helpful. I found that if I requested more than a certain number of results, seemingly nothing would be returned. Here's what works for me (change 300 to whatever number you want and remove any of the conditions after the ampersand): $restapiuri = "https://yourserver.service-now.com/api/now

ServiceNow: How to create a workflow that runs on incident update?

萝らか妹 提交于 2019-12-08 05:35:55
问题 I need to create a workflow which runs any time an incident is created or updated (or one workflow for each). When I create a workflow and set the "Table" to Incident, it will run every time an incident is created, but it doesn't run when an incident is updated. I've searched through the wiki and read a slideshow talk on workflow creation, but so far no dice. Thanks. 回答1: You would need to create a business rule on the Incident table that would call your workflow each time there is an update:

ServiceNow: How to create a workflow that runs on incident update?

喜你入骨 提交于 2019-12-06 14:45:27
I need to create a workflow which runs any time an incident is created or updated (or one workflow for each). When I create a workflow and set the "Table" to Incident, it will run every time an incident is created, but it doesn't run when an incident is updated. I've searched through the wiki and read a slideshow talk on workflow creation, but so far no dice. Thanks. You would need to create a business rule on the Incident table that would call your workflow each time there is an update: var updateOwner = new GlideRecord('wf_workflow'); updateOwner.addQuery('name', '<workflow_name>');

ServiceNow - How to use SOAP to download reports

女生的网名这么多〃 提交于 2019-12-06 08:47:40
问题 I need to automate download of reports from serviceNow . I've been able to automate it using python and selenium and win32com by following method. https://test.service-now.com/sys_report_template.do?CSV&jvar_report_id=92a....7aa And using selenium to access serviceNow as well as modify firefox default download option to dump the file to a folder on windows machine. However, Since all of this may be ported to a linux server , we would like to port it to SOAP or CURL . I came across serviceNow

ServiceNow - How to use SOAP to download reports

帅比萌擦擦* 提交于 2019-12-04 12:14:47
I need to automate download of reports from serviceNow . I've been able to automate it using python and selenium and win32com by following method. https://test.service-now.com/sys_report_template.do?CSV&jvar_report_id=92a....7aa And using selenium to access serviceNow as well as modify firefox default download option to dump the file to a folder on windows machine. However, Since all of this may be ported to a linux server , we would like to port it to SOAP or CURL . I came across serviceNow libraries for python here . I tried it out and following code is working if I set login , password and