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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 843 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 357 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans