Failed to findMessages in messaging API

Failed to findMessages in messaging API

BY 06 Dec 2013 Web Application Development

I have a filter:

CompositeFilter
  1. filters: Array[3]
    1. 0: AttributeFilter
      1. attributeName: “folderId”
      2. matchFlag: “EXACTLY”
      3. matchValue: “10”
      4. __proto__: CallbackObject
    2. 1: AttributeFilter
      1. attributeName: “folderId”
      2. matchFlag: “EXACTLY”
      3. matchValue: “20”
      4. __proto__: CallbackObject
    3. 2: AttributeFilter
      1. attributeName: “folderId”
      2. matchFlag: “EXACTLY”
      3. matchValue: “22”
      4. __proto__: CallbackObject
    4. length: 3
    5. __proto__: Array[0]
  2. type: “UNION”
  3. __proto__: CallbackObject

 

Trying to get messages:

service.messageStorage.findMessages( f, function(m) { console.dir(m); }, function(e) { console.dir(e); });

get the following error:

WebAPIError
  1. code: 0
  2. message: “Argument is invalid”
  3. name: “InvalidValuesError”
  4. type: “InvalidValuesError”
  5. __proto__: CallbackObject

Which argument is invalid?

 

Written by