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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Roll up Activity (Email, Task, Appointment,..) from custom entity to another custom entity

(0) ShareShare
ReportReport
Posted on by 80

Hi all,

When I create new Activity on Lead and then convert it to Opportunity, all these Activities (Email, Task, Appointment,...) will roll up from Leads to opportunity. So I have a requirement on how to roll up Activities from a custom entity A to custom entity B just like Leads to Opportunity. Do we have any OOB solution or we have to customize it with code? 

Thanks & regards,

Bao.

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    Please check this blog: powerobjects.com/.../

  • Duy Bao VN1 Profile Picture
    80 on at

    Hi Mehdi,

    I have read your article but this sentence make me confuse: "There must be an N:1 or 1:N relationship and the parent must be Account, Contact, or Opportunity."

    The custom entity A and B have the 1:1 relationship, if I convert entity A to B, can I set the relationship between these two Entity? Entity B will be the parent?

    Or if I understand right, this kind of configuration only can use on Account, Contact and Opp?

    Please correct me if I'm wrong

    Thanks.

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi,

    I think this approach is also applicable for custom entities. Also, there is no 1:1 relationship in CRM, we have the possibility to have the following relationships only: 1:N, N:1 and N:N.

    Could you please specify how you built the relationship between entity A and entity B?

  • Duy Bao VN1 Profile Picture
    80 on at

    Hi Mehdi,

    My mistake, relationship between entity A and B is N:1, which means entity B lookup to entity A.

    Thanks.

  • meelamri Profile Picture
    13,218 User Group Leader on at

    Try to reproduce the same configuration explained in the blog I shared. Don't hesitate to share some screenshots in case you get stuck.

  • Duy Bao VN1 Profile Picture
    80 on at

    Hi Mehdi,

    Follow up with your instruction, activities will only roll up from entity B to entity A right? If I reconfigure the relationship to N:N, will it be rolled up from entity A to B and vice versa?

    Thanks & regards.

  • Duy Bao VN1 Profile Picture
    80 on at

    Hi Mehdi,

    I can't change the Behavior Relationship of the Rollup from Cascade None to Cascade All. it's read-only and I can't change it.

    Thanks.

  • Verified answer
    Wahaj Rashid Profile Picture
    11,323 on at

    Hi,

    It is read-only because the Primary entity is not Account, Contact, or Opportunity.

    Please note, Roll-up Views can only be enabled when the Primary Entity is one of the following:

    • Account
    • Contact
    • Opportunity

    For example, if entity A (custom) has a lookup of Contact, you can enable the Roll-up Activity View, however, if the lookup is Entity B (custom), it will not work.

    I know, when we say it works with custom entities, it gets confusing, however, the custom entity will work only if the Parent (lookup) is one of the above entities.

    Following is an excellent post for FAQs about roll-up activity view:

    All you want to know about “Rollup View“ Entity Relationship behavior in Dynamics 365 - Debajit's Power Apps & Dynamics 365 Blog (debajmecrm.com)

  • Duy Bao VN1 Profile Picture
    80 on at

    Thanks for your solutions.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 153

#2
ManoVerse Profile Picture

ManoVerse 147 Super User 2026 Season 1

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans