How to add custom fields to Incident's Activity Formatter

Martin Pavlov
Tera Expert

Hello, 

I would like to add custom fields to the Filter Activity in the incident form, but I couldn't manage how so far. More specifically, I have a private attachment table and all attachments which are marked as "private" should still be visible in the activity form.

As of now, when an attachment is marked as private, a BR changes the associated table from "incident" to "u_private_attachment", and then the said attachment is hidden from the activity. I would like to add "u_private_attachment" to the Activity Filter, so the attachment could still be visible. 

I've found that the "glide.ui.incident_activity.fields" system property is responsible for the fields, and I see that, apart from the fields, entire tables are added this way -> *Email*,*Relations*,*Attachments*. However, I do not know how they are referenced. How can I add the private attachments to the above system property, and will this be the solution to the case?

Here is some similar post, but there is no information about how she added the private attachment to the activity form: https://community.servicenow.com/community?id=community_question&sys_id=2b6038d0db6c13802b6dfb651f96...

 

Sys_attachment table after a file was changed to private:

find_real_file.png

 

Attachment formatter on the Incident form:

find_real_file.png

 

Only the public file is shown:

find_real_file.png

 

How can I add the "u_private_attachments" table the same way "Attachments" is added to the Activity filter?

find_real_file.png

 

Big thanks in advance!

Martin

6 REPLIES 6

Swapnil Soni1
Giga Guru

Hi,

Refer the screen shot below and click on the icon next to Activity tab and then click on Configure Available fields as shown below:

 

 

 

find_real_file.png

 

 

 

Add your custom field to the right of the slush busket to have it appear on the Activity logs.

 

 

 

find_real_file.png

 

 

 

Hope this helps. Mark the answer as correct/helpful based on impact.

Thanks

Thanks for your answer! However, as shown in my last screenshot, my custom field/table does not appear in the "Available" box, so I cannot move it to the "Selected" one. My question was, how can I make the u_private_attachment appear in that "Available" box. Thanks!