ServiceNow get record last updated fields - scoped application
(note I have dropped this in here today without having fully tested it yet 😛 )
scoped application version:
see
http://snamigos.blogspot.com/2017/11/how-to-get-changed-or-modified-fields.html
where the blogger is recommending this approach:
//this will give you array of changed field names var changed _fields = getChangedFieldNames(current); function getChangedFieldNames(gr) { var result = []; var elements = gr.getElements(); var size = elements.length; for (var i = 0; i < size; i++) { var ge = elements[i]; if (ge.changes()) { result.push(ge.getName()); } } return result; }
Comments
Post a Comment