ACL to show New button under related list of sc task to certain group and catalog item

Bindhu1
Tera Contributor

Hi All,

I have a requirement to show New button in the catalog task only to specific group and specific catalog item.

I have to create a 'create' ACL on the sc_task table in order to control the visibility of the button

and added filter as below:

Bindhu1_0-1695217180676.png

Here abc group member is able to see NEW button but when he clicks on new button it throws an error as 'Action not authorised'

Bindhu1_1-1695217359610.png

 

error

Bindhu1_2-1695217436311.png

 

Note : abc group member is able to create new sc_task if I remove the filter condition i.e, request item.item is copy editing but i need to keep that condition in my acl.

 

 

Kindly help me in resolving this issue

1 REPLY 1

Ahmmed Ali
Mega Sage

Hello @Bindhu1 

 

My opinion is, it is not good solution to have create access on task directly. It should always come from workflow. OR if on-demand task is needed, you can create new UI action on RITM table OR sc_task related list view and on click of that button, create new record using GlideRecord in server script and redirect user to created record. In this way, you can reuse same UI action for other items/groups as well and you have control over the fields consistency/accuracy for dependent fields of sc_task over RITM.

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali