Declarative Action for specific Related List

Edoardo Gattei
Tera Expert

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?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Edoardo Gattei 

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')

AnkurBawiskar_0-1753784794349.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Edoardo Gattei 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader