Partager via


AX 2012 - Create new Worker/Employee through code

DirPersonName   DirPersonName;
DirPersonName.initValue();
DirPersonName.FirstName = "Pri02";
DirPersonName.LastName = "sin02";
   
HcmWorkerTransition::newCreateHcmWorker(DirPersonName, "Empl_001");

Comments

  • Anonymous
    October 09, 2011
    Good.

  • Anonymous
    March 29, 2012
    Hi, How would you implement this code if you were importing multiple records at a time. Say from another table. Cheers, Francois