How to add custom fields to Incident's Activity Formatter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 06:31 AM
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:
Attachment formatter on the Incident form:
Only the public file is shown:
How can I add the "u_private_attachments" table the same way "Attachments" is added to the Activity filter?
Big thanks in advance!
Martin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 11:30 PM
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:
Add your custom field to the right of the slush busket to have it appear on the Activity logs.
Hope this helps. Mark the answer as correct/helpful based on impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 11:41 PM
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!