Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to show child of child records in parent form?

Posted on by 515

Hello,

I want to show all Activity records of related Opportunity record of on Account form, In other words I want to add subgrid in Account form of child Activities of related Opportunity entity. Is there any way to do that?

Regards,

Ashish

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: How to show child of child records in parent form?

    Hi Ashish,

     you might try a plugin on RetrieveMultiple as Guillaume suggested above, but you'd have to develop that plugin etc.

    PS. You don't need to copy record - you just need to copy lookup value from one field to another using a worfklow. Sure that would introduce data duplication.. But you don't even need to show that new fields anywhere on the form/views.

  • Ashish Moradiya Profile Picture
    Ashish Moradiya 515 on at
    RE: How to show child of child records in parent form?

    Hi Alex,

    I don't want to copy records, is it possible to use just a query?

    Regards,

    Ashish

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to show child of child records in parent form?

    Hi,

    yes, on the retrievemultiple event of your subgrid, you can change the query to fetch all records which are fulfilling the condition "equal order under". Here is the type of query/conditions that you can achieve: msdn.microsoft.com/.../dn817893.aspx

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: How to show child of child records in parent form?

    Hi,

     I though it should be doable with the rollup views:

    community.dynamics.com/.../configure-rollup-view-for-activities-with-dynamics-crm-365

     But, it seems, that option is set to "cascade none" for the out-of-the-box opportunity-to-account relationships.

     Although, it seems I can use "Cascade All" when creating a new relationship between those two entities, so, maybe, that's what you should try:

    - Create another account lookup field on the opportunity entity

    - Set Rollup View behavior of that relationship to "cascade all"

    - Create a workflow to automatically copy one of the existing account lookup fields (on the opportunity) to that new field (so you could actually use the rollup view through that new relationship)

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans