You need to sign in to do that
Don't have an account?
Permission to delete a record when status changes
If a user does not have permission to delete a record, but they need to be able to do so when the status changes (IE to closed), how do you give the user permission to delete that particular record?
There are multiple ways to do it
1) You can use batch apex. The process will run behind the screen. Record will be deleted automatically once status changes to Closed.
2) Write an after update trigger on your object and delete the record using a DELETE dml operation.[this is also a backend process and your code should execute without sharing]
3) If you really want to give the delete premission to user [not recommened]
a) give the delete premission on the profile
b) create a new RecordType and PageLayout
c) remove the delete button from one the layout and assign to the appropriate profiles
Please elaborate your question in more specific business requirement so that I could provide you a better solution.
Regards
Amrender