Case state should update to work in progess APi.

Research
Tera Guru

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.

3 ACCEPTED SOLUTIONS

Amarjeet Pal
Kilo Sage
Kilo Sage

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

View solution in original post

Hi,


Yes, patch method should work fine for updates.


Regards,
Niklas

View solution in original post

Yes @Research  you can use PATCH . 

Please mark helpful if it has helped you

View solution in original post

7 REPLIES 7

Niklas Peterson
Mega Sage
Mega Sage

Amarjeet Pal
Kilo Sage
Kilo Sage

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

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.

Yes @Research  you can use PATCH . 

Please mark helpful if it has helped you