We have the requirement that we need to print the attachment without downloading it.

Shivani5
Tera Contributor


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!

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Shivani5 

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

AnkurBawiskar_0-1735827552615.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Shivani5 

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.

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

@Shivani5 

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.

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

Shivani5
Tera Contributor

Hello @Ankur Bawiskar ,
Thank you, it is really helpful.