simple search from web services

Author Message
jaganm
  • Total Posts : 3
  • Reward points : 0
  • Joined: 7/5/2017
simple search from web services - Monday, October 01, 2018 9:39 AM
I am trying to use web service call to search emails from particular address with receive date in range.  I was able to filter "To" list but not email received range date any example would be great
thank you

gfi_u
  • Total Posts : 3
  • Reward points : 0
  • Joined: 10/17/2018
Re:simple search from web services - Wednesday, October 17, 2018 4:48 PM
You could get the emails for a particular person and then apply a filter using LINQ to get dates between a certain range.
 
Otherwise, I think you'll need to have multiple FieldOpt for each date you want search
 FieldOpt fo = new FieldOpt();           
 fo.boolop = booleanflag_t.AND;           
 fo.fieldname = whereToSearch; //where to search           
 fo.query = whatToSearch; //search query