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 →
Blog
Learn Power Platform in 30 days
Learn Power Platform in 30 days
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 add filter in Dual-write
In today's article, we will see how to add filter in Dual write when syncing data from FinOps to Dataverse and vice versa. For Dataverse, we can use Odata filter expression using Dual-write but for FinOps, we have to use different techniques which can be later in this article. Step 1: Go Data management >... 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 create lookup with Virtual entity to native entity
Building an app requires capabilities to perform relational modeling between entities that are being used in the app. In the context of virtual entities, there will be scenarios where virtual entities and native entities in Dataverse must work together to enable the desired user experience. In this article, we will see the concept of relational... Continue Reading →
Create a customer in Dynamics 365 F&O using Power Platform
In today's article, we will see how to create a customer in Dynamics 365 F&O using Power Platform. Pre-requisites: You must need an environment for Dynamics 365 Finance and operations with Power Platform enabled. You must need virtual entity/table configured. Dual-write can be optional App registration for Dynamics 365 F&O Access To Power Platform(Service Writer/System... Continue Reading →
How to use D365 F&O number sequence in Power Platform
Using continuous number sequences from Dynamics 365 Finance and operations in Power Platform can be cumbersome sometimes but in today's article we will see how to use it. What is number sequence Number sequences are used to generate readable, unique identifiers for master data records and transaction records that require identifiers. A master data record... Continue Reading →
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 →