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

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...