How Can we stop deleting record which are specified in Lookup, is it can be achieved through out of the box feature or should write plug-in or custom workflow?
*This post is locked for comments
How Can we stop deleting record which are specified in Lookup, is it can be achieved through out of the box feature or should write plug-in or custom workflow?
*This post is locked for comments
Hi,
you can stop a user from deleting a record if it being used in another lookup using out of the box relationship behavior.
use cascading behavior and set restrict delete to All.
refer to the cascading behaviour given here :
msdn.microsoft.com/.../gg309412.aspx
if you need to do on some condition then obviously you will have to write a plugin.
Yes if you want to delete based on some condition then you can write plugin or configure work flow .
Hi Ganesh,
Lookup records also belongs to entity so you can achieve this using security role . Try to remove entity delete privileges of the assigned user security role.
Hope this helps.
Hi ganesh,
You can write Plugin code for it, Please check below article how to write plugin on delete
If you find it helpful, Please mark my Answer as Verified.
Best Regards,
Shahbaaz
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156