Discussions
SearchValue in customRecord search works on date only
we are using ws2_5, we did not change anything
, the only difference is .NET 1.1 AND .NET 2.0
the same code is working on dotnet 1.1 ,
it is a search based on lastmodified within last 15 minutes
when i use vb.net 2.0 , the webservice returns all record based on current day, it ignores all the hours/minute i specified.
why?
below is the code
sLasMod.operator = SearchDateFieldOperator.onOrAfter
sLasMod.operatorSpecified = True
sLasMod.searchValue = DateAdd(DateInterval.Minute, -5, Now)
sLasMod.searchValueSpecified = True
custSearchbas.recType = sRecordRef
custSearchbas.recType.typeSpecified = True
custSearchbas.lastModified = sLasMod
custSearch.basic = custSearchbas
sResult = NSWS.search(custSearch)