Close a change request using rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 08:07 AM
Hi Everyone,
How to Close a change request using rest API.
Tried PATCH request to https://XXXXdev.service-now.com/api/sn_chg_rest/change/{sys_id}
and providing close code, close note and state,
close code and notes are updating but the state is not changing to close state.
Please help.
Regards,
Jaydeep Yadav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 01:35 AM
@Jaydeep Yadav making fields read only might not effect, I just tried one in My PDI.
Is there any Data Policy on this table, which might be preventing it.
OR
Have you tried using Standard Change PATCH end point?
PATCH https://dev95429.service-now.com/api/sn_chg_rest/change/standard/{sys_id}
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 01:53 AM
Hi @AnveshKumar M ,
We are using PATCH request to the provided API endpoint.
No data policy on this table is preventing it.
Regards,
Jaydeep Yadav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 12:35 AM - edited 09-28-2023 12:35 AM
Can you check backend value choices of state field you are passing is correct..?
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates