How to create a worker in x++
In today's article, we will see how to create a worker using X++. Step 1: Create a class and define the global variable. class TestHireNewWorker ValidFromDateTime DefaultValidFromDateTime = HcmDateTimeUtil::startOfCurrentDay(); FirstName firstName = 'Julia'; LastName lastName = 'Reeves'; HcmTitleId hcmTitleId = 'Mrs'; HcmPositionRecId positionRecId; HcmWorkerRecId workerRecId; CompanyInfoRecId legalEntityRecId = CompanyInfo::current(); DirPersonName personName; utcdatetime startDate = HcmDateTimeUtil::startOfCurrentDay();...... Continue Reading →
This was originally posted here.
*This post is locked for comments