Display previous value of priority field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 03:30 AM
Hey
I need to display in the body of the notification the previous value of the priority field in the Incident form.
I would appreciate help on how to do this
Thanks, Shir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 03:40 AM
Please have a look at this community post -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 04:44 AM
It doesn't work for me, can you help me please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 03:50 AM - edited 06-13-2024 03:52 AM
Hi @Shir Sharvit ,
I tried your problem in my PDI and it works for me please check below solution
1. Create one event and add that event in Business rule like below image
Event
Business Rule
(function executeRule(current, previous /*null when async*/) {
// Add your code here
gs.log("CHECK CALLER = " + current.caller_id.getDisplayValue() + " ________ " + previous.caller_id.getDisplayValue())
gs.eventQueue('incident.caller.changed',current, current.caller_id.getDisplayValue(),previous.priority);
})(current, previous);
Create notification when event in fired and add your event there.
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2024 05:16 AM
The value returns to me in SYS_ID