Auto-expand Inbound mails on Incident activity

domaners
Kilo Guru

Is it possible to allow Emails displayed on the Incident activity UI Formatter to be automatically expanded when an Incident is opened? As we give most of our caller updated via the email button, it would be useful for our analysts to be able to see all of the updates at a glance, rather than having to click the + sign on each item. If this could be switched on / off per user then even better! Thanks.

1 ACCEPTED SOLUTION

Andre Moreira
Kilo Expert

Hi Adam Domanski,



With a little of jQuery Magic you can do it:



($$("img[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click()});



Here the documentation:



Attribute Contains Selector [name*="value"] | jQuery API Documentation



[]'s


Andre Moreira


View solution in original post

18 REPLIES 18

Andre, you're a genius. Turns out I didn't need to add the jQuery script call, it must already be defined somewhere in the code. Tested this out and it seems to work a treat.


This did not work for me in Orlando:

($$("a[onclick*='ActivityFilter.activityEmailToggle']")).each(function(item){item.click();});

 

 

find_real_file.png

can we do the same thing in the current version? doable in New York, Orlando, Paris?

This is not working on the current release.

Hello Andre,

I have tried all of your suggestions on this post and I can not make it work on my instance. do you have any suggestions on how it can work on outbound email within the modern version of ServiceNow like Q?

Thank you in advance,
Dylen