Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How "Cardinality" relation is work in table

(0) ShareShare
ReportReport
Posted on by 6

Dear All,

Can you please let me know how "Cardinality" relation is work in table.

Please give me an example.

Please give me more shed on this.

Thanks!

Arpan

*This post is locked for comments

  • @rp@n Profile Picture
    6 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Yes, as I mentioned earlier it defines the cardinality in-perspective of header table.

  • @rp@n Profile Picture
    6 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    RelatedTableCardinality having 2 options "ExactlyOne" OR "ZeroOne".

    The definition of both are same and just applicable for Header Table instead of Line Table.

    It's depends on Table design.

    Is't correct ?

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Its a part of best practice to always mention RelatedTableCardinality on a relation. Yes, it defines the relation type in-perspective of header table.

  • @rp@n Profile Picture
    6 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    RelatedTableCardinality is mandatory to mentioned ?

    Here RelatedTableCardinality is referred HeaderTable ?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    Yes. Correct.

  • @rp@n Profile Picture
    6 on at
    RE: How "Cardinality" relation is work in table

    Thanks Chaitanya,

    If the design of table (Line) is mandatory to have more than 1 records then it should be OneMore OR always 1 record then it should be "ExactlyOne" else (Optional) ZeroMore.

    Thanks!

    Arpan

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    Hi,

    No. As per design of SalesTable and SalesLine, we can have header(record) without any lines.

  • @rp@n Profile Picture
    6 on at
    RE: How "Cardinality" relation is work in table

    Sorry Chaitanya,

    I wrote wrong ZeroOne intead of ZeroMore.

    It should be OneMore right?

    Please give me more shed on this.

    Thanks!

    Arpan

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: How "Cardinality" relation is work in table

    .Hi,

    I think you might be checking property RelatedTableCardinality instead of Cardinality.Refer screen shot below.

    SalesTable-_2D00_-Cardinality.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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,202 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans