Work note validation and updation before setting in RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 06:02 AM
Hi All,
Before updating the RITM work note I need to check if the work note contains "ZjQcmQRYFpfptBannerEnd" and if so i need to eliminate this and pass it to RITM work note section how this can be handled?
Note: skip value logic is already working in the below script but I am unable to set the work note section with the trimmed content. also, it should not add twice I need to eliminate it and sent it only once to the work note section
tried the below before update business rule but not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 06:09 AM
what came in log and till which line it's working fine?
try this line
current.work_notes = newWorkNote;
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 07:41 AM - edited ‎10-17-2023 07:43 AM
current.work_notes if i use then also old value will be available
i need to apply the logic before passing to work note section