Make declarative action visible on condition

WorkI
Kilo Explorer

Hi all,

 

In the Service Operations Workspace, the Incident form includes a related list called Impacted Services/CIs, which contains ADD and REMOVE buttons.

 

Impact services - 1.png

 

We have a requirement to hide these buttons for specific incidents. Specifically, when the Category is '13' and the Subcategory is '21', neither button should be visible.

 

Could you please advise on the best way to accomplish this?

 

Links for these declarative actions:

 

ADD - https://<instance>.service-now.com/sys_declarative_action_assignment.do?sys_id=0f86af9873f9301045216...

 

REMOVE - https://<instance>.service-now.com/sys_declarative_action_assignment.do?sys_id=1ce6a7d873f9301045216...

 

Kind Regards,

Deepika G

1 REPLY 1

Hemanth M
Tera Sage

Hi @WorkI ,

 

Please add this in the script condition, like below : parent.category!=12 && parent.subcategory!=21

 

HemanthM_0-1787037658659.png

 

 

Hope this helps!

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026