March 2017
Beginner
358 pages
9h 51m
English
The following script could run inside of a business rule, and show a message indicating whether the operation was allowed or not:
if (current.active.changesFrom(false)) { if (gs.hasRole('admin')) { gs.addInfoMessage('This record has been re-activated'); } else { current.setAbortAction(true); gs.addErrorMessage('This record can only be re-opened by an Administrator.'); } }
Read now
Unlock full access