Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Table Relation based on field or RecId?

(0) ShareShare
ReportReport
Posted on by 1,550
Hi,
 
When we create two tables, when should we put the relation between the two tables based on a normal field and when should we put the relation based on RecId?
 
Are there preferences on when to do it like this or that? And what are the advantages/disadvantages of both ways?
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    Table Relation based on field or RecId?
    Hi Junior,
     
    My suggestion will be creating RecId relation - Create an RefRecId EDT and Map the reference table as 1st table.
    Now drag and drop the EDT to the second field which will create relation automatically based on the reference table.
    It will be advantage as it will have automatic lookup and hyperlink also available which will be easy to navigate. 
     
    Thanks,
    Girish S.
     
  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    Table Relation based on field or RecId?
    Hi, For normal table relations, my understanding is that its based on primary index of table with which we are creating a table relation. If primary index is surrogate key, we create relation with RecId and if not then we create with a table field like CurrencyCode field in Currency table. Suppose we have custom table and want to create table relation with currency table. We can still create RecId relation with Currency table but its beneficial to create with currencyCode because we can export currencyCode data along with other fields from our custom table when required, also it can be used directly in reporting, forms etc. 

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans