Deactivate Child Records using plug-in
The requirement is to deactivate child records using 1:N association via a plugin in Dynamics CRM. The plugin will trigger upon updating the parent entity, and will check the state code value to determine if it is set to active or inactive. In case it is inactive, the plugin will also deactivate the child records associated with it.
This is a useful feature when we want to have child records aligned with parent entity actions. With the help of this feature, we can create a more streamlined and efficient system.
For a more detailed explanation and steps on how to achieve this requirement, please check out the original post at https://himbap.com/blog/?p=4395.
Published on:
Learn moreRelated posts
CRM 2016 - Debugging Your Plug-ins with the Plug-in Trace Log
If you're a CRM developer looking to enhance your debugging skills, this post is an informative read. The author sheds light on how to use the...
Create / Update Related entity record in MS Dynamics CRM
This blog post provides guidance on creating and updating related entity records in MS Dynamics CRM. While working on the CRM platform, it's c...
Plugin Execution on DEACTIVATE/ACTIVATE the entity record in CRM
If you're seeking a solution to plugin execution when an entity record is deactivated or activated in CRM, you're in luck. This post explores ...
Debugging Pre Operation Plug-In Without Plug-In Trace Log
If you're struggling with debugging pre-operation plug-ins without the plug-in trace log, then this tutorial is right up your alley. This post...
How the “Regarding” field works in Microsoft Dynamics 365 CRM and the process for adding a custom entity to the “Regarding” lookup field.
Microsoft Dynamics 365 CRM is a powerful tool that allows you to associate records with other entities through the use of the "Regarding" fiel...
Bypass Dataverse Plug-ins and Flows in Power Automate | Tip #1459
Tip #1459 explains how to bypass synchronous Dataverse plug-ins and Power Automate flows, which can get in the way of inserting, updating, or ...
Dataverse Low Code Plug-ins now in public preview
Microsoft Dataverse low code plug-ins, one of the most eagerly anticipated features in modern business workflows, is finally available for pub...
The Perfect Solution to Clone Records, Child Records with Target Records in Dynamics 365 CRM!
Creating identical or similar records is a common occurrence in various businesses. For example, businesses dealing with repeat customers, rec...
D365 CRM Entity Relationships
In this post, we delve into the different types of entity relationships in Microsoft Dynamics 365 CRM and offer insights into how they work. U...