Sunday 16 December 2018

Power of Pre-Validation Stage in Dynamics 365

Hi,

Today, I got an interesting requirement on the Account Deletion. we all know that when we delete a account, all the records that are associated with it will delete as it is defined in Relation Behaivour. "Delete - Cascade all" and we cannot even change the configuration. 



After some search we got to know the power of Pre-Validation step. we have written a plugin and registered on the PreValidation step. Written a logic to loop through the contacts that are associated with the deleting account and updated ParentAccount lookup of the contacts with null. 

Hope this helps.

--
Happy CRM'ing
Gopinath

Web resouce dependencies in Dynamics 365

Hi,

We all were doing some tricks to refer two JS files on the Ribbbon like declaring one more action as IsNan etc. And now those days are gone, we can now define the dependencies for JavaScript and HTML Web Resource and that makes sure all the required dependent resources are loaded properly.

You just have open a Web Resource and you will find a new tab as Dependencies on it.

Hope this helps.

--
Happy CRM'ing

Gopinath