Preventing Business Rule gs.addInfoMessage from Displaying on the Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 09:02 PM
Hello,
We have used several gs.addInfoMessage() functions in our business rules, but we do not want these messages to appear on the portal. Can someone please provide suggestions?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:11 PM - edited 08-28-2024 11:34 PM
Thanks & Regards
Sejal Chavan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 11:58 PM
Hello @Lisa Goldman ,
You can prevent messages on portal using conditional statement like below -
if (gs.getSession().getClientData('glide.ui.session') !== 'Service Portal') {
gs.addInfoMessage('Your message here');
}
If my answer solves your issue, please mark it as Accepted✔️ & Helpful👍!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 01:46 AM
If I understood your requirement clearly, you want to restrict Info messages from all the Business Rules across the instance on the Service Portal. If yes, I don't think we have a direct solution to this available.
You can may be make the message available for a brief amount of time by manipulating the property "glide.service-portal.notification_timeout.seconds" or you need to go through all the BRs and either remove the info Messages or embed them under an if condition as suggested by @Vrushali Kolte
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.