Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
getDeleted not filtering by date
I'm using the following code to get all customers on NetSuite that have been deleted since a particular date. For some reason, I get back the same client record regardless of what I set the deletedDate.@operator property to. Has anyone successfully used this method? If so, please help.
GetDeletedFilter filter = new GetDeletedFilter(); filter.type = new SearchEnumMultiSelectField(); filter.type.searchValue = new string[1]; filter.type.searchValue[0] = RecordType.customer.ToString(); filter.type.@operator = SearchEnumMultiSelectFieldOperator.anyOf; filter.type.operatorSpecified = true; filter.deletedDate = new SearchDateField(); filter.deletedDate.searchValue = lastUpdateDate; filter.deletedDate.searchValueSpecified = true; filter.deletedDate.@operator = SearchDateFieldOperator.after; filter.deletedDate.operatorSpecified = true; getDeletedResults = service.getDeleted(filter);
0