Name

sn_hr_core.updateCloseNotes

Description

updates close notes of HR case when auto closed

Script

var updateCloseNotes = Class.create();
updateCloseNotes.prototype = {
  initialize: function() {
  },
  
  update: function(grCase) {
  	var fNote = grCase.close_notes;
  	fNote+=' This case was automatically closed or attempted to automatically close per the configuration of the corresponding HR service.';
  	grCase.close_notes = fNote;
  	grCase.update();
  },
  type: 'updateCloseNotes'
};

Sys ID

4ed7b79a535433007b32ddeeff7b1295

Offical Documentation

Official Docs: