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 :
Microsoft Dynamics CRM (Archived)

Historical Records 1:N

(0) ShareShare
ReportReport
Posted on by

Hi,

Scenario : When a contract record is renewed, a new contract record should be created and displayed on the sub grid. 

I created a self relationship on the Contract entity.  It works fine for the first renewal because the workflow simple sets a simple 1:N relationship.

contracts.PNG

Compilations occur from 2nd renewal. 

How do i best implement this so that i.e. on renewal : 

second contract record will show 1 record on the subgrid

third contract record, 2 records on the subgrid

fourth contract record, 3 records on the subgrid

etc

This needs to be automated - (not manual by using + on the subgrid). 

Many Thanks for your Help .

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hello there,

    Quick question - how these contracts are getting renewed? do you need to take care of that as well?

    regarding the subgrid record - you can simply do that by changing the filter of the view ( should not show the current one but older ones)

    for example there are 3 contracts and they all have past contract end date and have been deactivated. you could just add the filter criteria in the subgrid view to only include those which will automatically wont show the latest one.

    Hope this makes sense?

  • Jay2014 Profile Picture
    on at

    Thanks, thats the problem, the records on the subgrids should be different on each contract record. There needs to be some Hierarchical structure

    As mentioned - upon renewal

    1. The workflow runs

    2. Creates new a Contract record.

    3. A 1:N relationship is set old and new contract record.

    4. When new contract is open, there should be one contract record that's just been renewed.

    i want this logic to continue so the records on the subgrids have differ from record to record. i.e.

    third contract renewal, 2 records are displayed on the subgrid

    fourth contract renewal, 3 records are displayed on the subgrid

    and so on ...

    I hope this makes sense

  • Verified answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at

    Hi M,

    This would work for activities if you set the Relationship behavior for Rollup View to 'Cascade All', and the parent must be Account, Contact, or Opportunity. :-(

    www.powerobjects.com/.../activity-view-rollup-for-custom-entities-in-dynamics-365

    It would be much easier if you add a subgrid to the Parent (Account?) so you could show all contracts or filtered based on the date.

    If you still want to try, I guess you could fix this with a self-referential N:N relationship.

    Or build your own custom "N:N" entity for the contract history:

    http://informaquest.com/index.php/2017/04/06/join-entities-in-dynamics-365-and-why-they-are-awesome/

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans