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.

D365: How to write event handler for QueryExecuting event

This content demonstrates writing an event handler for the QueryExecuting form datasource event in Dynamics 365 for Finance and Operations. The business requirement is to hide records in a form based on a given condition. The provided code dynamically adds ranges to a form datasource using the event handler.

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.

D365: Get financial dimension value description in X++

This content demonstrates how to obtain financial dimension value descriptions in X++ for Dynamics 365 for Finance and Operations. The business requirement is to display these descriptions in an inquiry screen. The provided solution involves using a specific code to achieve this functionality.

D365: Get financial dimension value owner

This content demonstrates how to obtain the financial dimension value owner in X++ for Dynamics 365 for Finance and Operations. It provides a solution using the "ATLAS_LedgerDimensionHelper" class to retrieve the owner of the dimension attribute value. The "getDimensionAttributeValueOwner" method retrieves and displays the financial dimension value owner in an inquiry screen.

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.

D365: Get PO total amount in X++

In Dynamics 365 for Finance and Operations, the business requirement to display the total amount of a purchase order can be met using X++ code. By extending the PurchTable class, the getPurchTotalAmount method can be implemented to calculate and return the total dollar amount of a specific purchase order.

D365: How to set form control value in X++

This post demonstrates setting a form control value, controlling visibility of form controls, and getting the reference of a form control in X++. It addresses the business requirement of defaulting vendor account from Purchase Order to Add Products form in Dynamics 365 for Finance and Operations. The provided code accomplishes this task effectively and elegantly.

D365: How to get workflow assignee in X++

This content demonstrates how to retrieve the user assigned to the workflow for purchase orders in Dynamics 365 for Finance and Operations using X++ code. The given code extends the PurchTable table and includes a method to get the workflow assignee based on the pending status of the workflow work item.

Blog at WordPress.com.

Up ↑