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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Relation between InventTrans and InventTableModule

(2) ShareShare
ReportReport
Posted on by 295
Hello all,
 
I have to create relation between Inventtrans and Inventtablemodule tables in d365 f&o . How can I do this and explain me in detail
 
Thanks in advance!!
 
Regards,
Kishor
Categories:
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    Both are related to an item and have ItemId field, which you can use for the relation. Note that InventTableModule has multiple records for a given item; you'll likely be interested in a specific value of ModuleType field.
  • Ramkishor reddy Profile Picture
    295 on at
    Hi Martin,
     
    Thanks for your response
     
    My requirement is I want to add the UnitId field in to the InventTransNew form (Inventory transactions form) . For that I added InventTableModule as the data source. Now to set the properties of Join source and link type I need to have the relation between InventTrans and InventTableModule . How to add the relation whether the normal relation or foreign key relation . Please explain me in detail which relation i need to and what is the cardinality i need to set. 
     
    Thanks in advance!
     
    Regards,
    Kishor
  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    Your description isn't sufficient. It's not enough to know that you want a unit; you need to decide which unit you want. For example, you may always want the inventory unit, or you want a unit based on the origin of the transaction. It depends on the business scenario.
     
    Assuming you want the inventory unit, a simple solution is using inventUnit() display method of InventTrans, but it's not ideal for performance. Nevertheless it tell us you what relation you should use. Next time, check the existing logic before trying to figure it by yourself (and struggling with it).
     
    Creating a table relation is possible, but you're wrong in thinking that's the only option. Consider these two approaches as well:
    • Use addLink() to create a join condition in code, even if a table relation exist.
    • You can add InventTable data source in between those two tables and utilize existing locations.
    Regarding cardinality, there may be many inventory transactions for a given item. There may from zero to three records in InventTableModule, but if you restrict it to a specific module type, it may be zero or one.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans