How can i get attachment from sys_attachment table?

Ankit Kumar6
Tera Contributor

HI developers,

 

How can i fetch attachment from sys_attachment table where table name is 'sys_data_source' and table_sys_id is "23709e7e8742ce1cda7cc8080cbb3597"

And i want to add it as a link in notification, so when user click the link then it will download the above attachment.

Please help me how can i achieve this?

Thanks,

Ankit

 

2 REPLIES 2

dgarad
Giga Sage

Hi @Ankit Kumar6 

Refer to below link.

https://www.servicenow.com/community/developer-forum/need-to-query-the-download-link-of-attachments-...

 

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad

VaishnaviShinde
Kilo Sage

Hello @Ankit Kumar6 ,

 

Please refer the below link.

Solved: Attachments in notifications - ServiceNow Community

 

Please Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Vaishnavi