Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming 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