We have the requirement that we need to print the attachment without downloading it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 05:28 AM - edited 01-02-2025 05:29 AM
We have followed the below steps for the same:
1. We have created a new action assignment in the attachment action ("Print").
2. Then we have used the UXF Client Action.
3. And we have used payload in payload we have passed sysparm_media=print.
4. When we click the Print action, it will download the attachment we need to print that attachment.
Please see the attached Screenshot.
Please provide any suggestions.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 06:20 AM
try this in the URL
"url":"/$viewer.do?sysparm_stack=no&sysparm_sys_id={{attachmentSysId}}"
Enable document viewer on your table
In the dictionary i.e. Collection on your table add this attribute
use_document_viewer=true
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 08:54 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2025 08:16 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2025 08:16 PM
Hello @Ankur Bawiskar ,
Thank you, it is really helpful.