Loading...

Deactivate Child Records using plug-in

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 more
HIMBAP | Dynamics 365 Experts
HIMBAP | Dynamics 365 Experts

We are committed to deliver successful Microsoft Dynamics 365 CE solutions. We provide gamut of Microsoft Dynamics 365 CE and Power Platform services.

Share post:

Related 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...

7 years ago

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...

8 years ago

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 ...

8 years ago

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...

1 year ago

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...

20 days ago

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 ...

24 days ago

­­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...

7 months ago

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...

9 months ago

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...

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy