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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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