
Hi Team,
I have an requirement like before deleting the entity in the CRM, i need to check whether the deleting entity has any association to any other entity also need to check at least one entity will be available at all time.
how to capture the deleting event in the javascript? instead of writing event in the Plug-In,i do have lot of validation, but i want to write those stuff only in javascript instead of Plugin.
I am expecting like onSave method in the java script, i need delete event for an entity.
Regards
Praba.
*This post is locked for comments
I have the same question (0)You could use real-time workflow with Before delete , create a custom workflow step to validate all your business logic , if any of the logic does not met stop the workflow with cancelled status and set properties to show error message, why deleting a record is stopped. As you can delete record from List view (Grid view) javascript may not work well.
But realtime workflow will always fire regardless from where user tries to delete.