Show 'has attachments' in list view of Incidents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2014 12:27 PM
Hi, I've implemented the below...
Display Whether Tasks Have Attachments in List View - ServiceNow Wiki
But this isn't working for the Incident table. Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2014 01:07 PM
I was able to get it to work in sandbox.
Did you put the business rule on the attachment table and the 'Has Attachment' T/F field on the task table and showed it in the incident list?
Are you expecting it to flip the flag retroactively? You will have to do that through a background script.
Is it working for other tables and incident is the only problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2014 01:21 PM
Hi Mike, I have changed to using another method of this now but still have issues.
I'm now using...
http://wiki.servicenow.com/index.php?title=Talk:Useful_Attachment_Scripts
See...
3 Suggestions for the "Display Whether Tasks Have Attachments in List View" business rule example -- Joe W. 17:18, 12 November 2013 (PST)
I've amended line 56 to be u_has_attachments (missing 's' on the end added).
I have created the BR on the attachment table and added the T/F field on the task table and shown it on the Incident form.
I've not tested this against any other fields, the only one I am interested in is 'incident'.
Issue...
It now correctly marks the field as true when an attachment is added. However, when 'deleting' it, it does not mark the field as false if no attachments are left.