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.

How to display messages to users other than myself with addinfomessage

KS18
Giga Guru

How to display messages to users other than myself with addInfoMessage.

1 ACCEPTED SOLUTION

That is not possible.

View solution in original post

7 REPLIES 7

Saiganeshraja
Kilo Sage

Create a business rule depending on your when to run condition in( insert,update..) and in the advanced 

(function executeRule(current, previous /*null when async*/) {

// Add your code here

if(gs.getUserName() !="Your Name")
{
gs.addInfoMessage(" The Message you want to show");
}

})(current, previous);

 

Mark correct and helpful

 

Thank you for your comment.

But,

What I intended was a way to display it on the screen of a user other than the logged in user (myself).

That is not possible.

Inactive_Us1238
Giga Expert

hi ks,

You can create before/after (insert ,update) business rule. Please find the attached screenshots.

 

 

(function executeRule(current, previous /*null when async*/) {

// Add your code here
if(gs.getUserName() != "Abel Tuter")
{
gs.addInfoMessage("you are champion......");
}
})(current, previous);