The CreatorCon Call for Content is officially open! Get started here.

Need to Remove 'DELETE' UI Action from incident table and it should not affect the parent task table

shashank32
Giga Contributor

Hi

Can anyone suggest me the best way to remove  'DELETE' UI Action from incident table and it should not affect the parent task table.

i duplicated the DELETE ui action with less order and add one more condition in it-- '&&current.getRecordClassName() !='incident';

but its not working .

1 ACCEPTED SOLUTION

Hi,

you are checking with admin?

Did you check any other table level DELETE ACL on incident is allowing?

it worked for me even as an admin when I had 1 table level DELETE ACL on incident table

find_real_file.png

1) list - delete grayed out

find_real_file.png

2) form - delete button not shown

find_real_file.png

Regards
Ankur

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

View solution in original post

11 REPLIES 11

Hi Anil By changing OOB Ui actions does it effects while upgrading the instance?

Yes, it will be skipped during upgrade but you can compare upgraded version and take decision. 

If you find any update in script then you can opt for upgraded version and again add condition to hide it on incident form.

Even if you modify ACL's, you need to resolve conflicts related with ACL's

There is no way to avoid conflicts if you want to alter some OOB functionalities.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

better handle using ACL

Regards
Ankur

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

Hi Ankur i tried it, 

by giving type - record

table - incident.none

operation- delete

script - answer= false;

but it didnt worked,

can you please help?

Hi,

you are checking with admin?

Did you check any other table level DELETE ACL on incident is allowing?

it worked for me even as an admin when I had 1 table level DELETE ACL on incident table

find_real_file.png

1) list - delete grayed out

find_real_file.png

2) form - delete button not shown

find_real_file.png

Regards
Ankur

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