Questions tagged [servicenow-rest-api]

202 questions
0
votes
1 answer

Unable to create servicenow incident using API

I am trying to create new incident using rest api.Getting below error message. curl -X "PUT" "https://dev143368.service-now.com/api/now/table/incident" -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46bXYldTR*****" -H "Accept:…
0
votes
0 answers

Why is the body of my HTTP request null even though the ServiceNow Outbound REST API is triggering correctly?

Getting the body of an HTTP request from a ServiceNow Outbound REST API. I cannot seem to get the body of the request correct. The API triggers correctly, but the parameters I am expecting to see (number, short description and state) are coming…
Kosenurm
  • 1
  • 2
0
votes
0 answers

Is it possible to automate the follow-up process for tasks in ServiceNow and how does the REST API play a role?

Follow up emails automation for tasks in ServiceNow. We have a good junk of problem records and tasks opened, it is a very tiring and cumbersome task to follow up on each problem task with the assigned person. I am looking out for ideas to automate…
0
votes
0 answers

How to sync data across ServiceNow to Azure Devops

I'm looking for a way to have all data and updates on ServiceNow automatically populate and update on AzureDevops as the team slowly transitions from ServiceNow to Azure. So far the methods I found are using external applications and apis which as…
0
votes
1 answer

How to add comments and work notes in servicenow via REST API

I want a api which will post / put the comments and worknotes in servicenow. I have searched but not any correct API. If anyone knows then can provide the API details.
0
votes
1 answer

Trying get case object with specific id but that object data not retrived

I want get case object for perticular id so for that I have used below API https://service-now.com/api/sn_customerservice/case/CS0001052 so before some time of period it's working fine and gave expected responce. but now it gives responce { "error":…
0
votes
0 answers

Get case comments with comment author information and author type on Servicenow

I want to fetch the comments with comments author information like author name, email, type (Requester or Assignee) etc from servicenow api. for that I used this REST…
0
votes
0 answers

Mapping nested data from additional information in email notification

Suppose i had sent nested json data in additional information in em_alert, how do i access the nested data in the Email notification? For example the additional info has below nested value, how do i access data1 and data2 fields in the Email…
user1929905
  • 389
  • 3
  • 9
  • 25
0
votes
0 answers

How can I get an Oauth token from ServiceNow within a Bot Framework skill in Power Virtual Agent?

I am creating a Bot Framework skill that will be used by a Power Virtual Agent to perform a handover to a ServiceNow instance. I am using Bot Framework Composer and the Bot.Builder.Community.Components.Handoff.ServiceNow component. I am able to…
0
votes
0 answers

Trouble with the ServiceNow IdentificationEngine API (createOrUpdateCI())

I am trying to use this API resource to create some CIs through a scripted REST endpoint, but there are two issues. When I send CI properties for a firewall and one of its interfaces, both CIs are created, but the manufacturer field of the firewall…
StackExchangeGuy
  • 741
  • 16
  • 36
0
votes
0 answers

Moving change to review state using api

I want to change the state of the change request from implement to review state in snow. Have tried it using API Patch Patch sn_chg_rest/change/{sys_id} Body: { “state”: “Review”} It simply returns the list of fields as response. Status of the…
0
votes
0 answers

How to get conversation history in servicenow

How can I get the conversation logs in service-now virtual assistants using sys_id or any other parameter. I was trying to retrieve the logs or conversation history data using an API call from service-now virtual assistant.
gayatri
  • 81
  • 6
0
votes
0 answers

ServiceNow Attachment API REST call using TypeScript

I am currently developing a use case for a web application, where the architecture is defined in such a way that the frontend code picks up the attachment from the user's machine, is turned into the base64 format and sent to the backend code where…
0
votes
1 answer

Close serviceNow change using Rest Api

Is there a way to close the serviceNow change request using restApi ? Have tried it using API Patch Patch sn_chg_rest/change/{sys_id} Body: { “state”: “Closed”, “close_code”: “” “close_notes”: “” It simply returns the list of fields as response.…
ramya
  • 1
  • 2
0
votes
0 answers

Login to Service-now by get token or cookies when user login by SSO SAML

I have an integration system with Service-now and the users login to Service-now by using SSO, so my question is how to get cookies (if will help) or anything help to get it from user browser and use it in my code to do requests with service-now.. i…