Getting 'Record doesn't exist or ACL restricts the record retrieval' error on trying to download an attachment from incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 12:07 AM
The requirement is Download & Read the certificate file contents(JPEG/PNG) in the incident. I have created on test incident and trying to download the attachment through below API.
API details : https://instance.service-now.com/api/now/attachment/sys_id/file
I am getting the below response.
<response>
<error>
<detail>
Record doesn't exist or ACL restricts the record retrieval
</detail>
<message>No Record found</message>
</error>
<status>failure</status>
</response>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 12:21 AM
Hi Avishikta,
With what user you are testing? i.e. user credentials
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 01:53 AM
the user has admin role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2019 02:01 AM
Hi Avishikta,
the endpoint you are giving is incorrect. in order to download the attachment following endpoint is to be given; you need to give the sys_id of the sys_attachment table record.
can you show the exact endpoint you are giving there?
https://<instanceName>.service-now.com/api/now/attachment/{sys_id}/file
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader