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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Table Relation based on field or RecId?

(0) ShareShare
ReportReport
Posted on by 1,552
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?
I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,563 Moderator 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. 
  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator 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.
     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,100

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 633 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans