Attachments are not downloading in CSM Workspace

ramireddysa
Tera Contributor

Hi Team,

 

When an attachment is associated with the RITM, it appears in the Attachments section of the associated Catalog Task in CSM Workspace. However, when I click the attachment, it opens in a new browser tab instead of downloading.

 

In the Classic UI, the same attachment downloads correctly. Is there a way to make attachments download directly from the Catalog Task in CSM Workspace, similar to the behavior in the Classic UI? Any guidance would be appreciated. Thank you!

ramireddysa_0-1784793033163.png

ramireddysa_1-1784793057656.png

 


I have tried the below steps , but it didn't work.


1.Disable the document viewer at the table level by setting the 'use_document_viewer' attribute to false in the sys_dictionary entry for the catalog task table.
2. Ensure the 'com.snc.documentviewer.enable_document_viewer' system property exists in the system, as this is required for the solution to work. I have set this property value as false.

 

@Ankur Bawiskar 

@Dr Atul G- LNG 

@Matthew_13 

@GlideFather 

@Hemanth M1 

@Tanushree Maiti 

 

 

5 REPLIES 5

Hi @ramireddysa ,

If you'd like to implement the second workaround, you can configure the Attachment component to automatically download the attachment when it is previewed by following the steps below:

  1. Open the appropriate Record Page Variant in CSM Workspace. If the variant is not editable, create a copy of the variant as described in Workaround 1.

  2. Select the Attachment component and, in the properties panel on the right, navigate to the Events tab.

    HarishKumar6668_0-1784816631309.png

  3. Click Add Event Mapping and select the Attachment Previewed event.

    HarishKumar6668_1-1784816876323.png

  4. After selecting the event, a dialog will appear to choose the handler. Select Open Page or URL and click Continue.

    HarishKumar6668_2-1784817106209.png

  5. Choose the External URL option and uncheck Open in new tab. Then, use Bind Data with the Concatenate formula. Set the first value to:

    "/sys_attachment.do?sys_id="

    HarishKumar6668_1-1784824106949.png

  6. For the second value, bind the Sys ID of the selected attachment. Navigating to this URL causes the attachment to be downloaded, which is the default behaviour 

    HarishKumar6668_2-1784824226802.png

  7. Click Add and Save the configuration. From now on, whenever a user clicks an attachment, the preview will still open (default behaviour), and the attachment will be downloaded automatically at the same time.

This workaround does not prevent the attachment preview from opening. It simply initiates the download when the attachment is previewed.

I hope this helps! If this resolves your issue, please consider marking this reply as Helpful & Accept as Solution.

Regards,
Harish