Posts

Showing posts from October, 2025

How to add access in D365F&O

Image
 

Auto submit and Confirm purchase order in batch through code in X++ in D365F&O.

 Hi Viewers, Here is the code used for create new return order, auto submit workflow if any and confirm PO in batch. public void createAndConfirmReturnOrder(str _workOrderId)     {         PurchTable purchTable, returnPurchTable;         VersioningPurchaseOrder versioningPO;         purchTable = PurchTable::find(_workOrderId);         ttsbegin;         returnPurchTable.initValue(PurchaseType::ReturnItem);         returnPurchTable.initFromPurchTable(purchTable);         returnPurchTable.OrderAccount = purchTable.OrderAccount;         returnPurchTable.initFromVendTable();     ...

How to in visible a parameter in contract class in dialog form in x++ in D365F&O Sysoperation framwork

 Hi Viewers, To make parameter not visible in dialog form if it is populating from contract class. use attribute  SysOperationControlVisibilityAttribute. [DataMemberAttribute         ,  SysOperationControlVisibilityAttribute(false) ]     public NoYes parmRevalidate(NoYes _validate = validate)     {         validate = _validate;           return validate;     } Thanks for reading! Like this post if you found it helpful. ๐Ÿ˜€๐Ÿ˜€ And let me know your thoughts in the comments below.๐Ÿ˜‡๐Ÿ˜‡

Batch Bundling Multi threading in x++ in D365F&O.

Hi Viewers, ๐Ÿงบ Batch Bundling: The Efficiency Trap Batch Bundling is a simple idea: Take a big pile of work and divide it into smaller, equal-sized groups—called bundles —and assign each group to a different processor. Think of it like dividing a huge stack of mail into 10 smaller bundles, and giving one to each of your 10 assistants. Cons: However, a major drawback can occur: even if every bundle contains the same quantity of work items, the effort required for each item may be vastly different. The problem comes down to complexity. While each bundle has the same number of items (say, 100 sales orders), the work required for each item isn't the same. One bundle might contain 100 simple, single-item orders. Another might contain 100 massive, multi-line corporate orders. The assistants who got the simple bundles are done in minutes. But the others are still slogging through the complex work. Now, you have a bunch of people sitting idle , waiting for the others to finish. You...