Can we use gs.addInfoMessage in an async Business rule

anuneetimathur
Kilo Explorer

I am creating a business rule and running it asynchronously. Can I use gs.addInfoMessage in it.

6 REPLIES 6

Hi Berny,

Is there any way to run the gs.addInfoMessage() from async business rule?

Thanks,

Ankit

Hi Ankit, 

I don't think gs.addInfoMessage() will work in a async business rule. Think about it as a "onAfter" business rule that runs in the background whenever it cans. In other words, displaying a message in a async business rule doesn't really help. If it's tied to a given user transaction you should rather set the message in a different type of business rule.

 

Thanks,

Berny