X++

thumbnail 01
Dynamics 365 for Finance and Operations, Technical (D365FO)

D365: Get worker email address by purpose in X++

This content demonstrates how to obtain a worker’s email address based on a specific purpose, such as “Purchase Order,” within Dynamics 365 for Finance and Operations. It includes a solution involving an extension class of the HcmWorker table to achieve this, using a provided code example for reference. The method can be called to initialize a temporary table buffer.

thumbnail 01
Dynamics 365 for Finance and Operations, Technical (D365FO)

D365: Add field to New released product dialog form and persist to table

This post demonstrates how to persist a custom field added to the New released product dialog form to the table in X++ in Dynamics 365 for Finance and Operations. The solution extends the EcoResProductCreate form and uses chain-of-command to add the new fields to the data2Controls container. The code provided illustrates this extension.

thumbnail 01
Dynamics 365 for Finance and Operations, Technical (D365FO)

D365: How to make a standard field mandatory on a form in X++

This post explains how to make a standard field mandatory on a form in X++ within Dynamics 365 for Finance and Operations. The business requirement is to enforce a field that is optional in Standard Dynamics. The solution involves extending the PurchCreateOrder form using chain-of-command to make the Buyer group field mandatory on the form datasource.

thumbnail 01
Development (D365FO), Dynamics 365 for Finance and Operations, Technical (D365FO)

D365: Create default dimension in X++

This X++ code creates default dimension records for specific dimension values in Dynamics 365 for Finance and Operations. The solution involves using a class called ATLAS_LedgerDimensionHelper, which includes a method named getDefaultDimension. This method takes dimension values as input and creates default dimension records using the provided values.

thumbnail 01
Dynamics 365 for Finance and Operations, Technical (D365FO)

D365: How to filter procurement categories in X++

This X++ code demonstrates how to filter procurement categories in Dynamics 365 for Finance and Operations. The business requirement is to only allow tangible procurement categories to be selected. The provided solution uses a custom class extension to filter and display only tangible categories when selecting procurement categories or adding products to a purchase order line.

Scroll to Top