Declarative Action for specific Related List

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2025 02:59 AM
How can I configure a RL Declarative Action to be visible for a specific RL, considering the same table might be a RL to multiple/different tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2025 03:27 AM
In the Script Condition field check what's the parent table
Example: I have a Related List of HSE Actions under 5 tables but I want to show New button only when Related list is under 3 parent tables then I added this condition
parent.canWrite() && (parent.getValue("sys_class_name") === 'tableA' || parent.getValue("sys_class_name") === 'tableB' || parent.getValue("sys_class_name") === 'tableC')
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-30-2025 07:38 PM
Hope you are doing good.
Did my reply answer your question?
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