Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Monday, February 24, 2014

How to get calenderID in Dynamic AX 2012

Hi,

Pass the worker table recID to hcmEmployment and get hcmEmployment  recID to WorkCalenderEmployement recID
In that WorkCalenderEmployement table you can find the CalenderId
hcmEmployment           = HcmEmployment::getActiveEmploymentsByWorker(HcmWorker.RecId);
workCalendarEmployment  = workCalendarEmployment::findByEmploymentRecId(hcmEmployment.RecId);
return  workCalendarEmployment.CalendarId;

regards,

No comments:

Post a Comment

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...