Notifications
Announcements
No record found.
Dear Experts,
How is it possible to retrieve the class of the table map in Dynamics 365 FO? as part of the code upgrade, creating a map field is totally different in Dynamics 365
i have the InventjournaTableMap i want to add new field into its map, the field is in inventjournaltable created by myself.
i checked this link Extension of Table Map
regards,
I don't think that MS has reimplemented InventJournalTableMap using the new class based approach. At least I don't see such class anywhere, and also the documentation talks only about SalesPurchLine and SalesPurchTable maps.
Your question has been discussed many times, and there's an easy workaround.
Since you can't add new fields to the map, your code must instead look what is the tableId of the record that is handled via the map. Then you can cast it to a table buffer of the correct type, and now you can reach your field.
thank you , can you please explain this part "Then you can cast it to a table buffer of the correct type, and now you can reach your field."
Actually I don't even see a map called InventJournalTableMap in AX2012. Perhaps you mean JounalTableMap? Anyway this is what I mean and this is how you can access your custom fields:
if (journalTableMap.TableId == tableNum(InventJournalTable)) { InventJournalTable inventJournalTable = journalTableMap; info(inventJournalTable.MyField); }
thank you, it works
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader