Restrict User to remove Resource from a tab
Is there a way to restrict user to remove the resource from a custom tab of Resource. We have a custom resource tab in a custom object, is there a groovy script be written to avoid user to delete a particular resource from the team. The resource which is present on the parent custom object as a dcl cannot be deleted from resource tab.
Tried below code, but it keeps firing all the time. Code is on before update
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):