Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Get Field changes specifically Caller name into Journal Entry.

Cent
Tera Contributor

Just wanted to know if there is a possible way to get the Field Changes of an incident specifically caller name into the journal entry? or it can be done dragging the caller name into the additional comments/worknotes entry so it can be recorded. Thanks!

1 ACCEPTED SOLUTION

Neeraj31
Mega Sage

@Cent You can write one Before Update Business Rule with below script.

 

Condition: Caller Changes

Script:

(function executeRule(current, previous /*null when async*/) {

	current.work_notes = 'Caller: ' + current.caller_id.name + ' was ' + previous.caller_id.name;
})(current, previous);

 Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

1 REPLY 1

Neeraj31
Mega Sage

@Cent You can write one Before Update Business Rule with below script.

 

Condition: Caller Changes

Script:

(function executeRule(current, previous /*null when async*/) {

	current.work_notes = 'Caller: ' + current.caller_id.name + ' was ' + previous.caller_id.name;
})(current, previous);

 Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!