Create a Business Rule

  1. Create a new Business Rule
  2. Name: Lab 5.3 Display Business Rule
    Table: Incident [incident]
    Active: Selected
    Advanced: Selected
    When: display
    Order: 150
    
  3. Examine and write the script:
  4. (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);
    
  5. Select Submit

results matching ""

    No results matching ""