Posts

Showing posts from June, 2015

Create Multiple Employment on Other Companies

Last time, I have to implement AX 2012 in multiple entities customer, and the employee must be made available to all entities. To make the employees available, employment must be made in each entities. I used below scripts to create another employment to other entities. Employees data must be uploaded and must have employment on one entity (in this case company "B1") as pre-existing condition before running the script. Don't forget to change the value on the " con " variable with the entities (companies) which employment exists. static   void  ECL_TI_HCMEmploymentEntityInsert(Args _args) { #AviFiles SysOperationProgress progress =  new  SysOperationProgress(); HcmEmployment employmentSource, employmentTarget; container  con = [ "A1" ,  "A2" ,  "A3" ,  "A4" ,  "A5" ,  "A6" ,  "A7" ,  "A8" ,  "A9" ,  "A10" ,  "A11" ,  "A12" ,  "A...