I have a requirement where user need to view the attachments on the service portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 06:39 AM
when clicking on any document it asks to save the document and then review it. previously it was opening in a new tab in the browser only. my team reviewing 250+ files every day. so, its time consuming for us as well as unnecessary data storage needs in a PC.
I have a requirement where the users need to view the attachment in the portal is this feasible or possible and this should not be any variable? Please can anyone revert for this concern or query?
We need this view option in the service portal where we the user can view the attachment in portal same as how we view the attachment agent console. Is there any OOB feature for this or can it be done by custom configuration?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2024 06:55 AM
Hi @Raghavendra97,
Document previewer only works in the internal UI https://docs.servicenow.com/bundle/washingtondc-platform-user-interface/page/use/using-forms/concept...
Alternatively, you could clone and customize the widget used for uploading attachments within the portal. You can modify it to display the file content within an extra DIV, such as by setting the img src
to the base64 content of the attachment. Like this: https://www.servicenow.com/community/now-platform-forum/view-pdf-file-in-service-portal/m-p/1088942
If you found my answer helpful or correct ✔️ in any way, please don't forget to mark it to help future readers! 👍
--
Kind regards,
Marcos Kassak
Solution Consultant 🎯