'New' button disappear upon updating create ACL condition.

pranay_14
ServiceNow Employee
ServiceNow Employee

I am trying to update a 'Create ACL' . Initially the condition was 'Owner is not empty'. I am trying to add a AND condition to it which is 'source_type is XY'. Upon adding the condition the new button disappears.
How to resolve this issue as I want to allow creattion of records when given source_type condition is true.

 

data condition - ownerISNOTEMPTY^source_type=XY^EQ

 

NOTE- No additional role and script condition are present in the ACL. The table is in global scope.

 

2 REPLIES 2

GlideFather
Tera Patron

Hi @pranay_14,

 

check the source_type (reference, string, etc.) and ensure the condition is correct.

Debugging tip - go to the table/list form view where it is, click right mouse button on the menu and there will be "Analyse access", it will open a debugger interface:

KamilT_0-1753013394303.png

 

This is available in both form and list view, it shall give you some idea about it.

 

Another tip, always clear cache and try in incognito window to initiate in a new session..

 

 

EDIT: available in the form view only

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


I am able to see new button , made some changes put the condition in script as
code  - answer = (current.owner != '' && (current.isNewRecord() || current.source_type == 'XY'));

but now the source_type is never checked on insert. How to fix this