- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 08:31 AM
Hi Community,
OOTB automation adds a comment "Request Automatically Closed as all Line Items were complete" to REQ whenever its closure is triggered by Business Rule "Close Parent if Required" on [sc_req_item].
The code:
new SNC.RequestItem(current).closeParentRequest();
SNC class is a Java implementation, undocumented, sealed etc. So no chance for reverse engineering. Hence the question,
does anyone know how to control (suppress, translate, adjust) the text gracefully?
I can imagine a Bus.Rule before insert in [sys_journal_field], but it's too far away from "gracefully".
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 11:58 PM
Hi @OleksiyK ,
- Navigate System UI > Messages
- search Key: request automatically closed as all line items were complete
modify or add new with same key and message is different
Note that this will change the message in other places of the instance where it uses the message with the same key. But I highly doubt this message will be used anywhere else in the platform.
Hope that fixes it, let me know how it goes!
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 11:58 PM
Hi @OleksiyK ,
- Navigate System UI > Messages
- search Key: request automatically closed as all line items were complete
modify or add new with same key and message is different
Note that this will change the message in other places of the instance where it uses the message with the same key. But I highly doubt this message will be used anywhere else in the platform.
Hope that fixes it, let me know how it goes!
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 01:54 AM
Hello @Bhavya11
that's a good one, thank you!
Indeed, there are translations there in the languages we use.
So out of the three challenges "suppress, translate, adjust" we can strike two through.
We can't suppress it completely in this way though. Once the field Message in [sys_ui_message] record contains an empty string "" (which would make ServiceNow ignore the attempt to comment the REQ at all), the Key is used instead.
Anyway, thank you @Bhavya11 for the hint! If nobody else provides a solution to suppress the text entirely, then I gladly pick your idea as the solution.