Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Deactivate cascade records in dynamics crm

$
0
0

I have three entities: A, B et C

|A| 1 --------- N |B| 1 --------- N |C|

‘A’ has a child records of type ‘B’

‘B’ has a child records of type ‘C’

The purpose : I need when I deactivate a record ‘A’, the ‘B’ and ‘C’ will be deactivate automatically

I have created two plugins on setState message :

1) setStatePluginAB: when I deactivate a ‘A’ record, the plugin deactivates its childs which are ‘B’ records

2) setStatePluginBC: when I deactivate a ‘B’ record, the plugin deactivates its childs which are ‘C’ records

The problem is : When I deactivate a ‘A’ record, the plugin setStatePluginAB deactivate its child wich are ‘B’records, but the plugin setStatePluginBC doesn’t trigger automatically.

How can I trigger the plugin setStatePluginBC automatically after setStatePluginAB ?

Do you have any idea?

Thank you in advance !!


Viewing all articles
Browse latest Browse all 79901


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>