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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

table Map Extension in D365fo

(0) ShareShare
ReportReport
Posted on by 384

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 have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • sylvesterPowerBi Profile Picture
    384 on at

    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."

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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);
    }

  • sylvesterPowerBi Profile Picture
    384 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans