Email Signature Images as Attachments
I did my best to solve an interesting challenge (solve? nope, probably it is just a workaround ๐).
The installation details are at the end.Challenge: Why in the Case's Attachment list I cannot select and delete? As you know, there are too many emails, and in each email there is a picture used as the email signature, and that picture is shown as a case's attachment mixep up with the "real" attachments!!!!!!
For those of you that don't know about this issue, please check these Ideas:
- Allow Created Date in "Notes & Attachments" related list (8 years ago, and by the time I wrote this, 11 days ago, someone wrote again asking for it). This is more related to the fact that in the ListView we cannot differentiate two files with the same name unless we open them. Hence the Created Date field can help.
- Email Signature Images as attachments (5 years ago, and by the time I wrote this, 3 days ago, someone wrote again asking for it). If you enabled Email-2-Case, think about how many attachments are just "junk attachments" because they are only signature pictures, the email server assign them some particular names, and attach them to the email.
So, I did some research about the problem and found that:
- It is very common in a Service Cloud instance when Email-2-Case is enabled.
- The solution should start by adding functionality in the Case page to open the new Attachments ListView.
- It will be useful if in the ListView we can preview the document content.
I created a pair of components for a Salesforce Service Console Navigation App, not for the Standard Navigation, please keep this in mind. Did I mentioned Lightning?, well, yes, it is for Lightning ๐.
Everything starts from the Case Page
We need to be able to open the new Attachment ListView from the Case page and instead of creating a button or something of the sort, I made a simple component that will substitute the related list standard component for Attachments. My objective was to avoid a new component only to open the new ListView, and that will clutter the page layout and will face the best practices about the number of components on a page.
OK, if you agree, then go and add the component to your Case page! ๐.
But ... wait ... there is something more. When you are in the Edit Page App Builder, check that the component has two parameters:
- Signature Image Prefixes: add here a CSV (no spaces after the comma, please) of what prefixes are more used to name an email signature picture and attach it.
- Attachments List Height: this is the height of the ListView component (the one that "will open"). The objective is that the component fills the available space and I recommend to use a percentage of the screen height (and yes, I was too lazy to find an automatic method to adapt the height and fill the space below the Salesforce headers and tabs, and above the Salesforce footers. Beleive me, it isn't easy ๐).
And enjoy working with the new ListView
You just have to click in View All in the component above, that's it.
I think it is a very user-friendly component, so there is no much to explain. I will simply put here some images with the component in action. The rest, I leave it to you ๐, try it, it's free!!!
Wrap up
It was a try to ease an annoying situation in a very good and huge application as Salesforce. I hope you find it useful.
If you want to install it, it is an unmanaged package in my Developer Org. And ... again, it is free.
Please leave your comments in this blog or contact me in LinkedIn if you have any suggestion that will enhance the functionality, has any problem with it, or just want to do a general comment about it.
Hello,
ReplyDeleteTHank you for your efforts in helping out and I really appreciate it.
I just have one or few problems with this new case attachment. I have downloaded the case attachment from the production and added the component in the lightning app builder but the problem is that when I click the "case attachments" or the "view all", it doesn't do anything. Could you help me with this?
Hi,
DeleteCan you please share images of your Case page?
Thanks
I'm having trouble trying attaching an image in this comment box and I am very new at using this blogger. https://www.blogger.com/blog/posts/6098413990031505338?hl=en&tab=jj
DeleteI have uploaded the image here on this link. I hope this is what you needed to see.
If that previous link didn't work try this one. I think this one should work. https://sunnyboysun.blogspot.com/
DeleteHi Sun,
DeleteI can see the image, but it is the page editor with the component in it.
Anyway, this component was designed for a Console Navigation LEX.
Can it be that your app is Standard Navigation LEX?
Regards.
Works well, this is very handy
ReplyDeleteHi,
ReplyDeleteThanks for sharing this information!
We are searching for some similar functionality within the Files Related list, since the Files gives us more flexibility when it comes to for example attaching a file to a case e-mail. Will your solution work also for Files (Content Document?), or is it pure for Attachments?
Thanks in advance!
Br
Madelene Wรคrja
Hi Madelene,
DeleteI didn't tested it. Did you?
Kind regards