/// <summary> /// Method that deletes records in any given table based on the value. /// </summary> /// <param name = "_tableToClean"> /// The ID of the table in which records are deleted. /// </param> /// <returns> /// The number of records deleted from the table. /// </returns> protected NumberOfRecords cleanUpTableRecords(TableId _tableToClean) { Query query; QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; query = new Query(); queryBuildDataSource = SysQuery::findOrCreateDataSource(query, _tableToClean); return int642int(Query::delete_from(query, true, true, true)); }
This blog is contains coding reference related to Microsoft AX 2012 and D365 finance and operations and Power platform
Thursday, June 1, 2023
delete from using query run class in D365FO
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment