- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 08:15 AM
Hi
Has can any one can guide me on Case State to update to in progress from integration.
which API call in servicenow we will use to update Case state to move to working in progress from third party Integration.
Please can anyone suggest the API call so that I can start a head on this.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:07 AM
Hello @Research ,
To update the state of a case to "In Progress" from a third-party integration, you can use the ServiceNow REST API. Specifically, you would need to make a PUT request to the table API for cases (usually named `sn_customerservice_case`). Here are the general steps:
1. Authenticate to ServiceNow using an account with sufficient permissions to update case records.
2. Determine the sys_id of the case record that you want to update. This can be obtained through a separate query or by passing it as a parameter in your request URL.
3. Construct your PUT request with the following parameters:
- Request URL: `/api/now/table/sn_customerservice_case/{sys_id}`
- Request Headers: `{ "Content-Type": "application/json" }`
- Request Body: `{ "state": 2 }` (where 2 is the value for In Progress)
4. Send your PUT request and check for a successful response code (usually 200 or 204).
Thanks
Amarjeet Pal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 03:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 04:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 10:42 AM
Hi,
For that you can use the Table API.
https://developer.servicenow.com/dev.do#!/reference/api/vancouver/rest/c_TableAPI#table-POST
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 12:07 AM
Hello @Research ,
To update the state of a case to "In Progress" from a third-party integration, you can use the ServiceNow REST API. Specifically, you would need to make a PUT request to the table API for cases (usually named `sn_customerservice_case`). Here are the general steps:
1. Authenticate to ServiceNow using an account with sufficient permissions to update case records.
2. Determine the sys_id of the case record that you want to update. This can be obtained through a separate query or by passing it as a parameter in your request URL.
3. Construct your PUT request with the following parameters:
- Request URL: `/api/now/table/sn_customerservice_case/{sys_id}`
- Request Headers: `{ "Content-Type": "application/json" }`
- Request Body: `{ "state": 2 }` (where 2 is the value for In Progress)
4. Send your PUT request and check for a successful response code (usually 200 or 204).
Thanks
Amarjeet Pal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 03:22 AM
Hi @Amarjeet Pal Thankyou for Table API but can we go with PATCH method instead of PUT please suggest.
If I am woring please correct me
Like PATCH
PATCH https://instancename.service_now.com/api/now/table/sn_customerservice_case/{sys_id}`
Is this correct
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 04:10 AM