Questions tagged [servicenow-rest-api]
202 questions
1
vote
1 answer
Getting Display value of cmdb ci ServiceNow using Python
I have a code where I need to fetch CMDB Details from servicenow using python
import pysnow
import subprocess
import os
s = pysnow.Client(instance='test', user='admin',
password='test',request_params={'sysparm_display_value': 'true'})
r =…

Anti21
- 850
- 1
- 7
- 16
1
vote
1 answer
2 Business Rules calling at the same time when incident created
I am facing an issue in servicenow Business rules. I have 2 business rules which has to trigger when
When an incident created
When specific fields of an incident updated
While creating an incident I'm setting some default values say State -…

ImGenie
- 323
- 1
- 15
1
vote
2 answers
Service now api how to comment as specific user
I'm working on a project that consumes Service Now API (Rest). To do so our client has registered us as a user in order to login and make all service calls we need to. This project has an interface where users can login once they have an account on…

Leonardo Lana
- 590
- 1
- 4
- 13
0
votes
0 answers
How to get current user's sys id in ServiceNow when using REST APIs?
I created an "Login with ServiceNow" OAuth flow via Authcode grant (I don't have username). As of now, I only am aware of the instance URL and access token - how do I use this to get the authenticating user's sys_id/other details?
I tried hitting…

frunkad
- 2,433
- 1
- 23
- 35
0
votes
0 answers
How to set domain in service now
I am trying to make an API call in an MSP instance in ServiceNow. While trying to retrieve some records like groups and domains I am getting only the records that are stored globally. Is there any way I can set the domain as global before making the…

kunal mathkar
- 11
- 2
0
votes
0 answers
How to upload a file externally using AWS API Gateway and Lambda
I am trying to have an external api (servicenow attachment api) that you send a file to that attaches to a record in servicenow be through AWS API Gateway and AWS Lambda. I have set the binary media in the gateway to /. I have set up the post…

gxtra
- 11
- 2
0
votes
0 answers
Trouble uploading attachment to ServiceNow (attachments API)
I am trying to upload a text file, to attach to an unpublished Knowledge article in the Utah release of ServiceNow.
My code is:
$uri = "https://instanceName.service-now.com/api/now/attachment/upload"
$method = "POST"
$filePath =…

StackExchangeGuy
- 741
- 16
- 36
0
votes
0 answers
Integrating ServiceNow for Agent Transfer: How to Create Chats from External Systems?
I have a specific use case where I need to integrate my system with ServiceNow to create chats on behalf of users and receive agents' messages.
After researching, I came across the AWA module in ServiceNow, which allows transferring chats to agents…

Abhishek Ginani
- 4,511
- 4
- 23
- 35
0
votes
0 answers
How to add attachment to record with REST API without a physical file?
I'm trying to use ServiceNow's REST API to add an attachment to a record, but I want to upload the attachment from memory as bytes/base64/etc., without a physical saved file path.
Currently working when providing a file path
$splat = @{
URI …

swtto
- 125
- 2
- 12
0
votes
0 answers
ServiceNOW publish article through API
I managed to get add an article to the knowledge base in ServiceNow using the API. However, the added article is always in draft.
Is there a way to publish an article with the API?
It is fine to do this in a separate API call if need.
Moreover, I…
0
votes
0 answers
Four base URLs for login/auth, grant token, grant refresh, and token profile?
What are the four base URLs that define the standard handling of OAuth 2.0 in ServiceNow?
Login/Authorization URL, response_type=code. Redirects to service login page to authenticate by the client providing their username and password.
Get an…

Jeff
- 1,917
- 1
- 25
- 43
0
votes
0 answers
Uploading file to google drive ,title displaying as Untitled
I was able to upload attachment of a form in ServiceNow to google drive through integration. But the file is stored in google drive as 'untitled'. But it should have a custom name eg'Invoice'..
Below I have shared my business rule script. Can anyone…
0
votes
0 answers
How to use LIKE query with table another table in SNOW API
I use TABLE API on SNOW to retrieve data. The problem is when I use LIKE query with the connected table's value, the API returns an empty array. I use below…

VusalIs
- 23
- 3
0
votes
1 answer
ServiceNOW not able to update work_notes
I'm trying to update an incident's work_notes from POSTMAN with the below details, but it's not updating them. However I have referred the ServiceNOW documentation and trying the REST call the same way but still data is not getting updated.
Other…

TesUser476797
- 5
- 1
0
votes
1 answer
Retrieving Change Information with Affected Configuration Items (CIs) using ServiceNow API
I am seeking assistance on how to retrieve information about a change, including the affected Configuration Items (CIs), using the ServiceNow API.
I have already attempted the following API…

Jamhson
- 13
- 1
- 3