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 →
How to get current user worker in X++
The code to get current user. curUserId() The code to get current user worker. Option 1: HcmWorkerRecId hcmWorkerRecId = HcmWorkerLookup::currentWorker(); Option 2: HcmWorkerRecId hcmWorkerRecId = HcmWorker::userId2Worker(curUserId()); The code to get current worker name DirPartyName workerName = HcmWorker::worker2Name(HcmWorker::userId2Worker(curUserId()));
How to use Key Vault in X++
In today's article, we will see what Key Vault is, why to use and how to use Key Vault using X++ code. What is Key Vault Azure Key Vault is one of several key management solutions in Azure, and helps to solve problems such as secret, key and certificate management. Why use Azure Key Vault There... Continue Reading →
Top 5 X++ new features
In today's article, we will see new features added in x++. New operators are added in X++Access data by using the SysDa classesNew options in VS > Project > Right-clickChanges To Internal Access modifier in X++SysSetupConfigAttribute attribute New operators are added in X++ There are new two operators( *= and /=) added to X++ libraries.... Continue Reading →
CHAIN OF COMMANDS
Chain of Command is the term that describes how we customize, or extend, base Microsoft code in Microsoft Dynamics 365. You can now wrap logic around methods that are defined in the base class that you're augmenting. You can extend the logic of public and protected methods without having to use event handlers. Microsoft’s base... Continue Reading →
DISPLAY METHOD ON TABLE EXTENSION D365 FO
In Dynamics 365 for Operations, we don’t have the option to create methods on table extension, so we should use the extension class to do that. In this article, we will see how to create a display method on the table extension class and use it on a form extension. First, create your table extension... Continue Reading →
Create Sales order and Purchase order using X++
In this article, we will see how to create sales order and purchase order using x++. The code snippet for purchase order creation internal final class CreatePurchaseOrder { /// <summary> /// Class entry point. The system will call this method when a designated menu /// is selected or when execution starts and this class is... 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 →