preview link for attachments

Vedavalli
Tera Contributor

Hi

In incident form if we're having attachments can we create a link on that form to preview the document got attached?

Thank you

2 REPLIES 2

iekosmadakis
Mega Sage

Hello @Vedavalli !
First ensure that the "Document Viewer" plugin is installed and enabled in your instance:


Plugin id: com.snc.documentviewer
System property: com.snc.documentviewer.enable_document_viewer (Note: Create the system property if it does not already exist. Its value should be set to true)

 

Then navigate to System Definition > Dictionary and open the record with: Table = Incident and Type = Collection:

iekosmadakis_0-1749476334966.png

 

You will notice that in the related list "Attributes" there are three records out of the box. Create a new one with the following options:

Attribute: "Use Document Viewer"
Value: "true"
Dictionary entry: "incident"

 

iekosmadakis_1-1749476429575.png

 

Navigate back to the Incidents and open a record that has an attachment. You will notice that near the attachment name, the link [download] has now been replaced by the link [view]:

 

iekosmadakis_2-1749476522895.png

 

Please consider marking my answer as helpful and accepting it as the solution if it assisted you in any way.

Hi @iekosmadakis 
This is helpful it's working in native UI. But I wanted in the workspace