Skip to Content
1
Former Member
Aug 08, 2016 at 03:30 PM

SAP Cloud SDK : Delete more than 5,00,000 records from C4C custom object

268 Views

Hi Experts,

We have large number of record into our custom object and we need to check which 1 is the best option to delete it from ABSL code.

1) Delete from Query.

var DataQuery= CustomObjectRoot.CustomObjectNode.QueryByElements.Execute().Delete();

2) Delete via For Loop


foreach (var dellist in CustomObjectRoot.CustomObjectNode.QueryByElements.Execute()) {

dellist.delete();

}

Kindly advise which one is best method and if any alternative let me.


Thanks in advance.....

Regards,

Mithun