Create a Business Rule
- Create a new Business Rule
Name: Lab 5.3 Display Business Rule Table: Incident [incident] Active: Selected Advanced: Selected When: display Order: 150
- Examine and write the script:
(function executeRule(current, previous /*null when async*/){ g_scratchpad.resolvedByFirstName = current.resolved_by.first_name; g_scratchpad.resolvedByLastName = current.resolved_by.last_name; if(current.reopen_count.nil()){ g_scratchpad.reopenCount = "0"; } else{ g_scratchpad.reopenCount = current.reopen_count; } })(current, previous);
- Select Submit