web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Deactivate the parent record and the related active child records

(0) ShareShare
ReportReport
Posted on by 905

Hello,

Upon deactivation of the parent record in a table, I want to deactivate all the child records related to the parent. as I want to set their status to Inactive.

I believe there is no OOB feature that does that and it requires a custom plugin/workflow.

What will be logic to get all child records related to the parent entity in a query from different tables and deactivate them in bulk?

pastedimage1682537112459v2.png

Can someone provide an example or documentation guidance to achieve the above?

Any help is greatly appreciated.

Best regards,

EBMRay

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If you're ok with Async processing I would say the easiest way to design the Power Automate flow. You can see a good example here - carinaclaesson.com/.../

    If you want this to happen in a sync way you will have to use a plugin - himbap.com/.../

  • Suggested answer
    Sayen Zhang Profile Picture
    on at

    Hi EBMRay,

    If you want to deactivate all contacts related to an account whenever the account is deactivated.

    You can try this solution without having to write any code: How to cascade activate / deactivate (SetState) in CRM - Microsoft Dynamics CRM Community

    Hope this link help you!

    Best Regards,

    Sayen Zhang

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans