To Show Error Msg on incident list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 12:55 AM
Hi,
I am having a link on my service portal redirecting to incidents in native UI, I have to show an error message on the incident list view when user with no roles is getting redirected to the incident list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 01:03 AM - edited ‎07-16-2025 01:04 AM
Hello @Krutika Valanj2 ,
Create a Query business rule on the Incident table and add below line of code. In addition to that if you want to add condition then in the "When to apply" section add your condition.
gs.addErrorMessage('This is the Incident list layout');
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 02:23 AM
This will be taken care by OOTB table level READ ACLs on incident table and Query business rule.
Only valid role users can see the table data.
what's your use-case?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 04:01 AM
Hello @Ankur Bawiskar
I have a portal link to incident table, I want to show a info msg to end users that as they don't have roles in servicenow they will only be seeing incidents created by them. See the attached screenshotnative ui
portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 04:07 AM
I already informed the OOTB table level ACL and query business rule should handle this.
There is the OOTB incident query BR and you can update the logic there.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader