--delete from batchJobHistory where createdDateTime < '2020-12-31 16:00:49.000' --DELETE FROM batchHistory --WHERE BatchJobHistoryId NOT IN -- (SELECT RECID FROM batchJobHistory ) --DELETE FROM constraintHistory --WHERE DependsOnBatchId NOT IN -- (SELECT RECID FROM batchHistory )
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Thursday, November 24, 2022
D365FO:Delete BatchJob History through SQL query
D365FO:Cancel Purchase order through X++
Create a new class and extend standard PurchCancel class
class PurchCancel_CUSTOM extends PurchCancel { public void cancelPO(PurchTable _PurchTable) { PurchCancel_CUSTOM purchCancel = PurchCancel_CUSTOM::construct(); purchCancel.parmPurchTable(_PurchTable); // purchTable = _PurchTable; purchCancel.run(); } static PurchCancel_CUSTOM construct() { return new PurchCancel_CUSTOM(); } void new() { super(); } }
Subscribe to:
Posts (Atom)