function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naresh.TNaresh.T 

Overriding the Delete functionality

I am trying to override the delete functionality which will allow the non admin users to delete the record.
Currently non admin users are able to delete records which are created by them only.
 
I am trying to do this by providing a custom button and a scontrol using the delete Api.
 
Is there any other of doing this apart from changing user permissions.
 
Any help would be appreciated.
 
 

Message Edited by Naresh.T on 10-08-2007 02:03 AM

mtbclimbermtbclimber
You could create a button and bind it to an apex webservice which calls delete since that operation will run as the system it would effectively bypass the user restriction but I would question why approaching this from a user permission change is not sufficient.