Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Child Request is closed first then Parent Request is closed using Custom Entity

Posted on by 130

Child Request is closed first then Parent Request is closed using Custom Entity. for e.g child request is updating of master details for parent request.

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Child Request is closed first then Parent Request is closed using Custom Entity

    I am not 100% clear on what you are trying to achieve, but just explaining a scenario.

    If my understanding is correct, you want to prevent parent record from being closed/deactivated  if there are any open/active child records.

    If what you are looking is for the deactivate option, you will need to create a SetStateDynamicEntity message on the parent entity. In the Plugin message, you will need to retrieve all child records that have a state of active.

    If the count of the results is > 0, that means you are unable to deactivate the parent, and you need to throw an exception that there are still open child records.

    Was this your intention?

  • VinodTakke Profile Picture
    VinodTakke 130 on at
    RE: Child Request is closed first then Parent Request is closed using Custom Entity

    I have a scenario where their are 2 teams say e.g. Team A is handling Request - Parent which may have Child Request which is handled by Team B for e.g. Updating Master details of Main Request then unless Team B updates master details and closes Team A cannot close the ticket.

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Child Request is closed first then Parent Request is closed using Custom Entity

    Hi,

     Could you clarify what you want to do / what the problem is?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans