How to get the sys_id for sysapproval_approver table from a particular change request from REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-28-2022 02:34 AM
Hi I want to get the sys_id for sysapproval_approver table to approve / reject a change . In order to do that can I get the sys_id from the change request using REST API . I only have the change request number , by using that I need to get the all sys_id (approval) for that change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-04-2025 04:27 AM
It looks good.
the output of API "api/now/table/sysapproval_approver?sysparm_query=sysapproval=" returns the document id like below:
Question: can the sys_id parameter be used to approve the change by using the service account? For instance, the patch request:
https://.service-now.com/api/now/table/sysapproval_approver/07710a061b___5628ce54bcbc5
Could you please clarify if there is a chance to use the service account to approve the change request in respect of application user?
BR, Slava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-04-2025 06:03 AM
If I'm reading the out-of-box ACL on the state field for an approval record the account trying to change the state has to either be the approver (or delegate) or have the "approval_admin" role.
Note: The instance depicted in the screenshot has also installed plugins that use the snc_internal/snc_external roles. So if your instance has them too then the service account must also have that and any other configurations to security your instance has set up.