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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to show child of child records in parent form?

(0) ShareShare
ReportReport
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

I have the same question (0)
  • ashlega Profile Picture
    34,477 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
    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
    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
    34,477 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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans