Security privilege for Customer Address Entity
Views (1628)
I learned something new today. CRM is using Account entity privileges for the related Customer Address Entity. You won’t find the Address entity in Security role to set the Privilege.
Sometimes we may remove the delete privilege for Account entity to avoid user errors. But when you have a requirement to delete the associated address record that too when plugin is running on calling user context, this will fail. Either this code has to run on Admin context or Have to open the security role privilege for Account entity so that it will get cascaded to Address entity. This Stack Overflow question sparked this research & blog post.
Actually I got to know this hidden concept from SALutions answer from this community thread
Sometimes we may remove the delete privilege for Account entity to avoid user errors. But when you have a requirement to delete the associated address record that too when plugin is running on calling user context, this will fail. Either this code has to run on Admin context or Have to open the security role privilege for Account entity so that it will get cascaded to Address entity. This Stack Overflow question sparked this research & blog post.
Actually I got to know this hidden concept from SALutions answer from this community thread
This was originally posted here.
*This post is locked for comments