Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Enable Delete UI action button for specific user

krishnanara
Tera Contributor

I want to enable the Delete UI action button for a specific user for my custom table which extends from the task table. When I tried checking the UI action button in the task table and tried adding the user role here I don't see the user able to view the Delete button. Is there anything I'm missing?

krishnanara_0-1762175559974.png

 

1 ACCEPTED SOLUTION

@krishnanara 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

7 REPLIES 7

@krishnanara 

create your own table.None DELETE ACL and check in advanced script if logged in user matches your user

This will override the Parent (task) level DELETE ACL

If yes then DELETE will be seen

answer = gs.getUserID() == 'yourUserSysId';

 

AnkurBawiskar_0-1762185374724.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@krishnanara 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Anand2799
Tera Guru

Hi @krishnanara ,

 

Use the OOB "Delete" button for this.

 

Could you confirm if you're able to see and use the "Delete" button?

If yes, then this is due to an ACL restriction. You may need to either update the ACL or assign the appropriate role to the user to grant delete permissions.

 

Thanks,
Anand