Compliace Workspace Policy Exception "New" button. How to suppress it?

staticCrash
Tera Guru

Hello,

 

In the PE list, three is a "New" button.  I would like this button hidden.  

I can't find the record for this button.  I have checked UI Actions, List Actions, and the config for the UIB page.  There was a Hide List Actions checkbox, however that removed all of the buttons.  There was no option to hide the "New" button only.

 

Please advise.

 

Thank you,

j

 
 

pehow.png

2 REPLIES 2

Omender Singh
Tera Guru

 

Hi,

 

The "New" button you're seeing in the Policy Exceptions list inside Compliance Workspace is not a traditional UI Action — it's a Declarative Action defined in the Now Experience Framework.

 

To hide just this button (without removing all actions):

  1. Go to Now Experience Framework → Declarative Action Sets

  2. Find the action set for sn_compliance_policy_exception

  3. Open the New action and use this in the Visibility Condition:

(function() {
  return false; // hides the button
})();

 

Alternatively, use Action Exclusions to remove it for a specific table/view.

Let me know if you need to conditionally hide it for roles or specific users.

Hi Omender,

Thank you for the help.

I checked List Actions Under Declariative Actions, and could not find that record.  Nothing with a Label of New, for the sn complaince tables.

 

So I don't think that's it.  LIke I have checked these declarative actions beofre and UI actions, and I can't find this source for that button.