Notifications

9 views

Description


How to sort attachments on the record in order of newest to oldest

Procedure


Create a Before Query Business Rule on the sys_attachment table with the following script.


(function executeRule(current, previous /*null when async*/) { 
current.orderByDesc('sys_created_on'); 
})(current, previous);

Applicable Versions


All versions

 

Article Information

Last Updated:2019-05-21 11:51:52
Published:2019-02-09