Attachment column in list view

Peter Kilden
Tera Contributor

Is it possible to show in a list of incidents or problems if the individual records have attachments?

9 REPLIES 9

Deepak Ingale1
Mega Sage

Hi Peter,

Yes, you can use the field style as shown in screenshot below. I have created a field style against NUMBER field on INCIDENT table and given the background-color as red if record has attachment

Once done, you can see all the records are showing RED background color for number field. You can apply the IMAGE ICON in style sheet as well 😉

 

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/navigation-and-ui/...

 

Note: Please mark reply as correct if it has answered your question

find_real_file.png

 

find_real_file.png

ARticle doesnt load,  does anyone have the script for this?

Ankit Singh Sol
Kilo Contributor

Hello Peter

I am not sure whether we have any functionality to show attachment as a column in the list view or not but you can use this option to check that a particular record has attachment or not from the list view. You can use the hasAttachments() on the sys_ui_style table for the record.

For instance, if I want an icon or color change to indicate that the record has an attachment in the list view I can set up a style like below:find_real_file.png

 

And if the record has an attachment it will display like below:

 

find_real_file.png

 

Please mark it helpful if it works and also please don't forget to like the same.

Thanks

mines comming up like this, the icon isn't clear, any ideas what i did wrong?

 

find_real_file.png