End of mainstream support for Microsoft Dynamics AX 2009, 2012, and 2012Mainstream support for Dynamics AX 2009 Service Pack 1 (SP1), Dynamics AX 2012, and Dynamics AX 2012 R2 ended Oct. 9, 2018. After that date, only security hotfixes will be provided for these three versions through the extended support period that until Oct. 12, 2021. Read more
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
I have a record on InvenTable, which is related to another record in InventJournalTrans.
In other words I have created an item and inserted it into an adjustment journal, which means there are all related record in InventTrans etc...
The issue I faced is the following:
If I try to delete the item from Released product form, standard delete action (Restricted) works properly, so i get the error "<table> cannot be deleted while dependent <table> exist..."
If I try to delete the item by code instead:
ttsBegin; select forUpdate InventTable where InventTable.ItemId == "xxx";InventTable.delete(); ttsCommit;
the check is not performed and the record is deleted anyway.
I wonder why because I am using delete() method and not doDelete() method.
Has anyone faced this problem before?
In code you need to call validateDelete yourself and then call delete only if it returned true.
while select forUpdate inventTable where inventTable.ItemId == "xxx"
I hope it will help you.
Business Applications communities