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

Auto populate the fields upon importing the Id in data entity

(0) ShareShare
ReportReport
Posted on by 10

I'm trying to import an excel file in Data management that has a projId only

after importing the file it should automatically generate/populate the value of projName and ProjNumber in the fixed assets form
so that when I Export the data it will automatically put a value on projName and ProjNumber 

is there a way to do this automation or process ?

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi HJNC,

    Which version of Ax is about your question.

    I am assuming it as a D365 FO since you tagges Micrsoft Dynamics Ax (Current version).

    You can make use of the initializeEntityDataSource or defaultRow method.

    Refer to the standard entity HcmWorkerBaseEntity.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, If you want to map projNumber and projName field based on ProjId during data entity import then you can use mapEntityToDataSource data entity method

    msdaxpulse.wordpress.com/.../

  • HJNC Profile Picture
    10 on at

    Hello Girish

    Here is a sample

    I only import FIXEDASSETNUMBER and PROJID.

    FIXEDASSETNUMBER | PROJID

    -------------------------------------

    1234556                     | TM-0005

    --------------------------------------

    however, when I export NAME and APPROVALNUMBER doesn't have a value

    FIXEDASSETNUMBER | PROJID     | NAME  |  APPROVALNUMBER |

    ------------------------------------------------------------------------

    1234556                     | TM-0005  |             |                                    |

    ------------------------------------------------------------------------

    Wherein the NAME  and APPROVALNUMBER is connected with PROJID so if the system check that if there is a PROJID it should also get the value of NAME  and APPROVALNUMBER according  to  PROJID when inserting it to the datasource  

  • GirishS Profile Picture
    27,833 Moderator on at

    Yes, you need to add select statement to get the ProjId name and Approval number based on the ProjId. ProjName you can get it from ProjTable. You can use either initializeEntityDatasource or mapEntityDataSource or defaultRow method.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Hi, you can achieve that by writing code in insert() or update() at that table. So once import of entity is done, then insert or update will be called.

    But this design doesn't work for values to refresh in real time.

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
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 470

#3
Adis Profile Picture

Adis 270 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans