Notifications

14 views

Description

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-08-02 20:52:50
Published:2019-02-09