Microsoft Dynamics 365 Blog

Using skipDeleteActions with doDelete still calls the delete actions 

1 min read

Recently we came across an issue where running code like this:     Unit unit;    ;    select firstonly forupdate unit where unit.UnitId == ‘cl’;    unit.skipDeleteActions(true);    unit.doDelete(); This results in the delete still being called on Tables\UnitConvert (via the cascaded delete action on Tables\Unit). This is because SkipDeleteActions() only works when using a set based operation (like…Read more

0 Comments