- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 11:49 PM
HI,
On change of a caller in an incident, how can I set old and new caller email in additional comments ?
Thanks,
Ankit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 12:11 AM
You can use a before update Business rule like the one below.
(function executeRule(current, previous /*null when async*/) {
current.comments = "Old caller email: " + previous.caller_id.email + "\n New Caller email: " + current.caller_id.email;
})(current, previous);
And the result is:
Please mark my answer helpful and accept as solution if it helped you 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 12:11 AM
You can use a before update Business rule like the one below.
(function executeRule(current, previous /*null when async*/) {
current.comments = "Old caller email: " + previous.caller_id.email + "\n New Caller email: " + current.caller_id.email;
})(current, previous);
And the result is:
Please mark my answer helpful and accept as solution if it helped you 👍✔️
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 12:40 AM
you can use before update BR and handle it
what script did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader