Why "gs.addErrorMessage()" of Global domain is not working in another domain?

subhadeep1618
Tera Guru

Hello Everyone,

I have a business rule created in 'global' domain which restricts users from updating an incident to on-hold without entering on-hold reason. In case user doesn't enter reason, the following error message will be shown:

 

gs.addErrorMessage("Please enter valid Reason before updating State to On-Hold.");

 

This is perfectly working and also error message is displaying when I am logged into 'global' domain.

However, when I am in another domain, the BR is working to restrict the user from updating incident, but the above error message is not getting displayed.

Can anyone tell me why - and how can I show this message irrespective of domain?


Please mark this post as a solution and also as helpful, if this resolves your issue or query.

Thanks,
Subhadeep Ghosh.
1 REPLY 1

JohnnySnow
Kilo Sage

Have you explored the reference guide for Scoped & Global 

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server_legacy/c_GlideSystemAPI#...

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.