How to find out from which script messages are getting displayed?

swathigangadhar
Tera Expert

I have check both BR and client script s, no where on the incident i had written this messages, still they are getting generated once i submit record producer for incident. I want to remove these massages, how to find where these messages are triggered from?

App.PNG

1 ACCEPTED SOLUTION

apurvasharma
Kilo Guru

Hi Swathi,



Did you check the Record Producer Script(written in Script Field). Might be they are coming from there.



Thanks,


Apurva


View solution in original post

4 REPLIES 4

Julian Hoch
ServiceNow Employee
ServiceNow Employee

A "brute force" way would be to selectively disable business rules, UI policies and client scripts until the messages disappear. That way you should be able to find the source.


apurvasharma
Kilo Guru

Hi Swathi,



Did you check the Record Producer Script(written in Script Field). Might be they are coming from there.



Thanks,


Apurva


Siddartha Gudim
Tera Guru

Looking at the format of the messages generated this are generated from Business rule since gs.addInfoMessage method produces such messages.


So please


right click --> configure --> Business Rules



Now add the following filter



Script --> contains --> Message displayed.(in this case would be applications). Hope this helps.



Please like or mark correct based on the impact of response.


Mihir Mohanta
Kilo Sage

Open the Record producer configuration form and check if any gs.addInfoMessage() functions defined in the Script section


find_real_file.png