Closed ayatm closed 4 years ago
Not sure if it is the same for emails but for contacts I use this:
final List<Option> options = new LinkedList<Option>();
options.add(new QueryOption("filter", "startswith(displayName,'" + text + "') or startswith(givenName,'" + text + "') or startswith(surname,'" + text + "')"));
I would assume you can do this:
requestOptions.add(new QueryOption("filter","from/emailAddress/address eq 'ayat@hhhhhh.com'"));
Or if you want to keep using the search param maybe this (I haven't tested it myself):
requestOptions.add(new QueryOption("search","from:ayat@hhhhhh.com"));
Thank you so much, this one requestOptions.add(new QueryOption("filter","from/emailAddress/address eq 'ayat@hhhhhh.com'")); works with me
I am trying to search for emails by sender email address as the following requestOptions.add(new QueryOption("$search=","\"from:ayat@hhhhhh.com\"")); client .getMe() .getMessages() .buildRequest(requestOptions) .get(new ICallback() {....}
but that does not work! Any idea?