Hi
Do you know any out of the box method that can prevent users even super user or Internal Admin to delete a specific company?
Thanks
Hi
Do you know any out of the box method that can prevent users even super user or Internal Admin to delete a specific company?
Thanks
Hi Vaishnavi
Thank you so much. Looks like this is not possible without development. I was hoping to ignore development here. Thanks again
Thanks Kim for suggestion. I tried this but the challenge is now super user for environment cannot perform some tasks. Thanks again
Hi,
You can add a boolean in User Setup page to restrict the user to delete the companies.
and based on that boolean field use a event subscriber and call onbeforedelete event on the page "Companies"
Also, in order to have access or visibility of boolean field in user setup page you can hardcode the user value which should have the access of boolean field edit or you need to remove the permission of modifying the user setup data from the users.
If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.
That's hard. You could try assigning companies to the Super permission set (leaving out the ones that you want to restrict)
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156