- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2016 03:07 PM
I have form on which i track who uploaded what attachment as in the screen capture below:
This works fine as long as the form is submitted but obviously it is no good if a user drags a file to the form. So, I registered an event as follows:
I then wrote a business rule:
and nothing happened....Where did I go wrong?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 07:42 AM
Yes as chuck mentioned, it should be an after BR. What is the field type of attachment_links and is it a custom field ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:01 PM
You need a business rule on sys_attachment table. Because adding an attachment will not update the record, so writing business rule on the task table will not help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:17 PM
So, how do I access the record to which an attachment was attached. Is it impossible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:23 PM
Wait, i think I have it. I use the current.sys id and get the current.table_sys_id, which should give me the record id.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:26 PM
Yes, in the sys_attachment table, you will have both the table and sys_id of the record in that table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:29 PM
This is how you can access the record
var gr= new GlideRecord(current.table_name);
if(gr.get(current.table_sys_id)){
//do your manipulation here
}