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, ...
Answered

HowTo Add Custom fields into a \Data Dictionary\Map

(0) ShareShare
ReportReport
Posted on by 46

Hello All,

I need to add my custom field  Tables\JmgStamJournalTrans.AKS_CostCategoryId (EDT: RouteCostCategoryId) in to the \Data Dictionary\Maps\JmgStampTransMap so I can make jmgStamTransMap.AKS_CostCategoryId.

the reason is to bypass the my custom field from the Classes\JmgJobBundle\postTime() to the  Classes\JmgPostStandardSystem\postTime() using the jobTime Array  of type Records which is holding the jmgStampJournalTransTmp with the Category I need in order to Update CategoryHoursId and Price furthermore at  ProdJournalTrans and ProdRouteTrans tables.

I haven't work with Maps so I wonder if you guys can tell me if if possible to modify and how, without it messing it :)

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: HowTo Add Custom fields into a \Data Dictionary\Map

    Is your question about Dynamics AX (2012) or D365FO?

    In AX2012 you can just add them by customizing the map.

    In D365FO you can't add custom fields to an AOT map.

    But in your code where you handle the map, you can instead fetch the actual underlying table (find it by mapBuffer.TableId and mapBuffer.RecId), and access your custom fields this way.

  • CBNestor Profile Picture
    46 on at
    RE: HowTo Add Custom fields into a \Data Dictionary\Map

    HI Nikolaos,

    My mistake the question is for AX 2012.

    is a way to do somthing like this (jmgStampTransMap.RecId).AKS_CostCategoryId ? or you saying by making a Select over those given value so a have the table row to work with

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: HowTo Add Custom fields into a \Data Dictionary\Map

    In the map definition in AOT you can add your custom field, and map it with the data source table(s) of the map. Once that's done, you can access it as jmgStampTransMap.AKS_CostCategoryId.

  • CBNestor Profile Picture
    46 on at
    RE: HowTo Add Custom fields into a \Data Dictionary\Map

    Done Nikolaos, Thanks. Added the field and mapped.

    I still want to know about this buffeTable.TableId could you develop a little bit how would be if the field is not custom added to the map?

    thanks a lot for your help!

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 1,850

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 519 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans