Salesforce Fact #725 | Validation on record delete using screen flow
We know that in order to add validation during record deletion we need to go with trigger addError() method.
But suppose we have a scenario where we want to put restriction on record deletion from UI if a user is not assigned a particular custom permission. We can have a screen flow in this case which can be used as a quick action.
In this example, the user is only allowed to delete an account record is he/she has the custom permission 'Delete Account' assigned.
Attached are the screenshots.
Comments
Post a Comment