- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 05:16 AM
Hi,
We are using Report vaccination to collect the employee's vaccination details. As part of this process, they will upload their vaccine card, which will be verified by HR. Is it possible to view the attachment on the platform without downloading it?
Document Viewer plugins are installed and required system properties are set. Still not able to view the file from the sys_attachment table. Am I missing anything? Please suggest.
Thanks,
Bindu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 08:39 AM
Hi
I think I have a suitable solution for you. Just configure the following UI Action:
For better copying the script code:
function openViwer() {
var sysId = typeof rowSysId == 'undefined' ? gel('sys_uniqueValue').value : rowSysId;
var url = new GlideURL('sys_attachment.do');
url.addParam('view', 'true');
url.addParam('sys_id', sysId);
g_navigation.open(url.getURL(), '_blank');
}
After that, you will have a new item at the context menu in the list view:
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 05:31 AM
Hi
have you added the table attribute use_document_viewer for your table:
After that you have the additional "view" option for attachments at Incident records:
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 05:34 AM
I am hoping you have already looked at the below link and have the setup done-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 05:52 AM
Thank you for the details Maik, I have followed the mentioned steps. Now I can view the file from the Vaccine Responses table without downloading it.
Is it possible to get a similar option to view the file for the records in the sys_attachment table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2021 05:53 AM
Hi,
I don't think for sys_attachment anything can be done.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader