Question

Dynamic Security

In the out of the box functionality i can prevent the user from deleting contacts by configuring the object permissions.

Can we prevent deleting a specific type of contacts? Let us say those who are males?

Like 0

Like

1 comments

Dear Mortada,

You can add such logic on the client side of your application or add a trigger to the database. 

In case you decide to choose client side realization, than you need to create a replacing client module for ContactSectionV2 and override basic deleteRecords method. Add an if clause to check whether record meets requirements to be deleted. 

In case you want to choose database trigger, than draw your attention to the before delete triggers.

Regards,

Anastasia

Show all comments