Code to get Employee Name For all employee in Ax 2012

 To get Employee Name For all employee in Ax 2012 You can get idea from below code.

 DirPerson        dirPerson;  
   HcmWorker        hcmWorker;  
   HRMDailyAttendance   hrmDailyAttendence;  
   ;  
    while select Name ,gender from dirPerson  
    join hcmWorker  
      group by dirPerson.Name,dirPerson.Gender  
     where hcmWorker.Person == dirPerson.RecId  
     
      {  
      info(strFmt("%1",dirPerson.Name));  
   }