Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Before Business Rule for Insert and Update is not showing Info message properly.

pandeyved
Tera Contributor

I need one help in Before Business Rule when insert and Update is checked.
I am writing this script on Task Table:

 

(function executeRule(current, previous /*null when async*/) {
    // Check if the visibility group has changed and the info message has not been added already
    if (previous.u_secure_visibility_group != "" && previous.u_secure_visibility_group != current.u_secure_visibility_group && !gs.hasInfoMessages()) {
        gs.addInfoMessage("Test");
    }
})(current, previous);
But the issue is this info message is appearing at the top but again disappearing after some miliseconds
What can be the cause.
Thanks
 
1 ACCEPTED SOLUTION

This will work for Native UI as well @pandeyved 

View solution in original post

6 REPLIES 6

Thanks @SanketLandge1 
But I am talking about Native UI

This will work for Native UI as well @pandeyved