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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Custom Entity Relationship

(0) ShareShare
ReportReport
Posted on by 126

I need help creating a relationship between an Account and a custom entity linked to the Contact.

I need to create a report on the number of custom entities(Contact) linked to Account. N-1

Can anyone assist?

I have the same question (0)
  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    Can you elaborate more?

    So the relationship between Account and Contact is 1:N, the relationship between Account and custom entity is 1:N, the relationship between Contact and custom entity is 1:N, right?

  • User Profile Picture
    126 on at

    Hi Hao,

    Yes that is correct.

    Account and Contact is 1:N

    Contact and custom entity is 1:N

    I am struggling to build the relationship between the Account and the custom entity. You are correct in saying that it should be:

    Account and custom entity is 1:N

    For example:

    A university (account) can have many students (Contacts)

    A student (Contact) can have any qualifications (Custom Entity linked to Contact)

    But I'm struggling to formulate a relationship in which I can report on the number of qualifications that the university has issued.

    Account linked to multiple custom entities.

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi partner,

    If only for the report, we do not need create new relationship between Account and custom entity.

    When creating a report, select Primary record type to ContactRelated record type to Custom entity.

    pastedimage1602669853612v2.png

    Then select the Company Name in the filter of Contact.

    pastedimage1602669838724v1.png

    When set the Lay Out, select Company Name of Contact be the group and select its Summary type to Count.

    pastedimage1602669991402v4.png    pastedimage1602670006466v5.png

    So the report is as follow.

    pastedimage1602670071811v6.png

  • User Profile Picture
    126 on at

    Hi Hao,

    Thanks for the quick response.

    The problem I have is that there is no option to select for Company Name or Account Name in the filter of the contact.

    Here I've created the report and then clicked next.

    pastedimage1602676590941v1.png

    But here there's no option to select Company Name or Account Name.

    pastedimage1602676626481v2.png

    I don't understand why or what I need to do...

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi partner,

    It is possible that the display name of the Account lookup field of Contact has been modified.

    We need to check its new name first.

    Go to customizations and open the fields of Contact, then sort by Name, find parentcustomerid. Check its display name. This is the original Company Name field.

    pastedimage1602677122811v1.png

  • User Profile Picture
    126 on at

    Hi Hao,

    Thanks for the quick response.

    The problem I have is that there is no option to select for Company Name or Account Name in the filter of the contact.

    Here I've created the report and then clicked next.

    8738.pastedimage1602676590941v1.png

    But here there's no option to select Company Name or Account Name.

    7360.pastedimage1602676626481v2.png

    I don't understand why or what I need to do...

  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    Have you tried my answer above to find the actual field of Company Name?

    The display name of a field can be changed, but the name cannot be changed, so we need to find the new display name of Company Name according to the name.

  • User Profile Picture
    126 on at

    Hi,

    The fields are the same as in your screen shot. Any suggestions on where to go next?

    pastedimage1602678669940v1.png

  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    Edit the Company Name field and check if Searchable is Yes.

    pastedimage1602678905265v1.png

    If not, change it to Yes.

  • User Profile Picture
    126 on at

    Hi,

    Yes - it is searchable.

    pastedimage1602679308533v1.png

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans