function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sravanthi SSravanthi S 

Trigger help - how to add a link to view attachments from case email and display on case list view?

Hi All,

Need your help to write a trigger which takes the user to attachment from the email (we use email -to case) by clicking on a link on case list view? Is it even possible?

I have writtena trigger to ticka box if the email has any attachement at all but we need to display the link to attachement as well - this will help improve productivity so much
SonamSonam (Salesforce Developers) 
Though late, I'm hoping this might help:
Attachments similar to any other record in salesforce has record IDs which you can fetch using SOQL:
SELECT ContactId,(SELECT id FROM attachments) FROM Case
You can create a trigger which can capture these IDs and construct a URL and create a custom URL field with the value of the Attachment URL.