Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Getting 'Record doesn't exist or ACL restricts the record retrieval' error on trying to download an attachment from incident

Avishikta S
Kilo Contributor

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>

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Avishikta,

With what user you are testing? i.e. user credentials

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

the user has admin role

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader