attachment.uploaded event triggering and subsequent scripting

verdakosnett
Tera Expert

I have form on which i track who uploaded what attachment as in the screen capture below:

find_real_file.png

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:

find_real_file.png

I then wrote a business rule:

find_real_file.png

and nothing happened....Where did I go wrong?

1 ACCEPTED SOLUTION

Yes as chuck mentioned, it should be an after BR. What is the field type of attachment_links and is it a custom field ?


View solution in original post

23 REPLIES 23

Thanks, are you recommending I set "when to run" to "Before"?


No, based on Abhinay's description, this is an after. you are looking for changes on the sys_attachment table and making an update to the related table once the attachment is committed/confirmed.


Yes as chuck mentioned, it should be an after BR. What is the field type of attachment_links and is it a custom field ?


Actually, it seems to update the record fields defined in the"Actions" section if when to run is set to "Display" but the script in the "Advanced" tab is not doing anything. I have to play with that further.


It should update. I have tested this on my end. I think the problem here is with the field name "attachment_links". This is not an OOB field, so it should start with u_