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

Relation between InventTrans and InventTableModule

(2) ShareShare
ReportReport
Posted on by 244
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
    236,289 Most Valuable Professional on at
    Relation between InventTrans and InventTableModule
    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
    244 on at
    Relation between InventTrans and InventTableModule
    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
    236,289 Most Valuable Professional on at
    Relation between InventTrans and InventTableModule
    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

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,188

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans