Create audit trail when uploaded file is opened

Posted by Meehl on 22-Jun-2015 14:53

I have an uploaded file field of a Grant Application object that can be opened by applicant, administrator, and grant reviewer objects. How would I go about creating a trigger that will generate an audit trail for whichever object/person opens the file? 

Thanks in advance

Posted by pvorobie on 22-Jun-2015 15:55

Add "onclick" attribute to your link which opens file. Make sure rbf_runTrigger() browser-side API is called. This way you can create Audit Trail record or perform other action when particular link is clicked.

All Replies

Posted by pvorobie on 22-Jun-2015 15:55

Add "onclick" attribute to your link which opens file. Make sure rbf_runTrigger() browser-side API is called. This way you can create Audit Trail record or perform other action when particular link is clicked.

Posted by Godfrey Sorita on 23-Jun-2015 08:23

If the file upload is a related record, you can enable "audit trail" property and include the option to additionally create Audit logs when record is viewed.

This thread is closed