Your one-stop resources for Microsoft Dynamics 365 Finance & Operation developers

Developers in Microsoft Dynamics 365 Finance and Operations (F&O) often ask how to learn X++ from the basics to advanced levels. In this article, I will share some resources, certifications, blogs and YouTube link which can be useful for the developers. Learning catalog for Dynamics 365 Finance developers from Microsoft Learning catalog for Dynamics 365... Continue Reading →

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 →

How to get workers current position, department and manger in X++

In Dynamics 365 F&O, we have HcmWorkerHelper class which gives much information about worker such as department, primary position, current legal entity and so on. The code to get worker's current position. This gives current worker record. HcmWorkerRecId hcmWorkerRecId = HcmWorker::userId2Worker(curUserId()); HcmPositionRecId hcmPositionRecId = HcmWorkerHelper::getPrimaryPosition(hcmWorkerRecId); The code to get current worker manager. HcmWorker currentWorker =... Continue Reading →

Create a customer/vendor using x++

In this article, We will see how to create a customer and vendor record using X/ Below is the code snippet for creating a customer record in X++. public class CustomerCreateDemo { private void new() { } public static CustomerCreateDemo construct() { return new CustomerCreateDemo(); } public void createCustomer() { CustTable custTable; NumberSeq numberSeq; Name... Continue Reading →

Create a website or blog at

Up ↑

%d bloggers like this: