D365F&O - X++ - delete_from in X++ AX2012 and D365 F&O

 delete_from is used to Delete all records from a table at once based on some condition.

//declare your table varibale
CustTable  custTable;

 

ttsbegin;

// Delete all records without any condition
delete_from custTable;


//delete records based on some condition
delete_from custTable
 where custTable.AccountNum == "Cust12345677";

Comments

Popular posts from this blog

D365F&O - X++ - Best Practice Warning BP Rule: [BPErrorUnknownLabel]: Path:

D365F&O - X++ - How to Enable/Disable button on form based on a condition in D365F&O using Event handlers.

D365FO - X++ - Generate CAR (Customized Analysis Report) report of custom model