- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 12:55 AM
Hello All,
if change request is conflict, the add info message not displaying in Service Operational workspace. but it is visible in change request sow view.
Could anyone assist in identifying the cause and suggest a resolution for this issue?
Thanks in advance,
Haribabu
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2025 04:44 AM
Hi @Haribabu1 ,
Couple of things
GlideURL and GwtMessage().getMessage api not working on workspace, i have commented that and used top.location.href for workspace view.
Result :
Script for reference, Make sure to test before you use.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
function getSchedulingConflictMessage() {
var startDateReadOnly = g_form.isReadOnly("", g_form.getControl("start_date"));
var endDateReadOnly = g_form.isReadOnly("", g_form.getControl("end_date"));
if (startDateReadOnly || endDateReadOnly)
return new GwtMessage().getMessage("Scheduling conflict detected. Review the Conflicts form section.");
if (top.location.href.indexOf("now/sow/record/change_request") > -1) {
g_form.addInfoMessage("Scheduling conflict detected. Use the <a href='javascript:void(0);' onclick='openNextAvailableTime()'>Scheduling Assistant</a> to avoid conflicts.");
}
return new GwtMessage().getMessage("Scheduling conflict detected. Use the <a href='javascript:void(0);' onclick='openNextAvailableTime()'>Scheduling Assistant</a> to avoid conflicts.");
}
function showConflictNotification() {
var showConflictMessage = g_scratchpad.show_conflict_message;
if (showConflictMessage.property === "never") return false;
if (showConflictMessage.property === "always") return true;
var showNotification = showConflictMessage.preference;
return showNotification;
}
//We don't want to render the warning and link to the conflict scheduler if we're in 'print' mode
//var gURL = new GlideURL();
// gURL.setFromCurrent();
// var isPrint = !!gURL.getParam("sysparm_media");
//if (!isPrint && newValue === "Conflict" && showConflictNotification()) {
if (newValue === "Conflict" && showConflictNotification()) {
g_form.addWarningMessage(getSchedulingConflictMessage(), "conflict_warn_status");
if (window && window.refreshConflicts)
window.refreshConflicts();
return;
} else if (isLoading || newValue === '')
return;
// Remove the warning message as status is not Conflict.
var chgGlideUI = GlideUI.get();
var messageKey = "warning_" + getSchedulingConflictMessage();
if (!chgGlideUI.messages[messageKey])
return;
delete chgGlideUI.messages[messageKey];
var messageCount = Object.keys(chgGlideUI.messages).length;
if (messageCount === 0)
chgGlideUI.clearOutputMessages();
else {
var msgElement = $("conflict_warn_status");
if (msgElement)
msgElement.remove();
}
if (window && window.refreshConflicts)
window.refreshConflicts();
}
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2025 07:29 AM
Hi @Haribabu1 ,
Its confusing when you say Message not displaying in Service Operation workspace but its visible in change request SOW view -- Are you referring SOW view in the native UI???
Can you provide screenshots here??? just tried with Client script info message and works fine!!!
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 04:28 AM
Hello @Hemanth M1 ,
Thank you for your prompt response.
The issue pertains to the error message referenced in the native UI under the SOW view; however, it is not appearing in the Service Operations Workspace. Screenshots have been attached for your reference.
We appreciate your assistance and look forward to your response
Thanks,
Haribabu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 05:24 AM
Hi @Haribabu1 ,
What did you configure to show this message?? Client script?, Server Script? trigger?
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 06:12 AM
Hello @Hemanth M1 ,
Thank you again for the quick response.
The message is triggered by the out-of-box client script titled "Conflict change."
Thank you,
Haribabu