Skip to Content
Feb 01, 2021 at 06:50 PM

.Delete() Account Item in Route BO

51 Views Last edit Feb 02, 2021 at 03:12 PM 3 rev

Hi All!

We're trying to do a mass exclusion in Route Standard BO in SDK using ABSL according to a certain business rule:

import ABSL; 

var selectedDate = this.RemainingVisitsDate;

if (!selectedDate.IsInitial())
this.Account.Remove(acc => acc.VisitDate != selectedDate);
} else { 
raise Message_RemainingDate_Not_Set.Create("E");

The this.Account.Remove() doesn't work, even without any filter (should delete all items), what we're doing wrong?

Thanks in Advance!


print.png (101.1 kB)