Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Parag Chapre Blog / How to create a worker in x++

How to create a worker in x++

Parag Chapre Profile Picture Parag Chapre 12,252 Most Valuable Professional
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.

Comments

*This post is locked for comments