none
Exchange ActiveSync search calendar entries RRS feed

  • Question

  • Hi,

    I am trying to search Exchange Calendar Folder using ActiveSync XML.  The XML request is of the form:

    xml.append("<search:GreaterThan>");

    if (type == CALENDAR) {

    xml.append("<calendar:StartTime/>");

    } else {

    xml.append("<email:DateReceived/>");

    }

    xml.append("<search:Value>");

            xml.append(startDate);

            xml.append("</search:Value>");

    xml.append("</search:GreaterThan>");

            xml.append("<search:LessThan>");

    if (type == CALENDAR) {

    xml.append("<calendar:StartTime/>");

    } else {

    xml.append("<email:DateReceived/>");

    }

    Basically, I am following the Search Specifications, with either email or calendar based option. Interestingly, if I search the Calendar folder with email:DateReceived XML element, I am getting Calendar Entries for only the PAST meetings and not FUTURE meetings. If I change to calendar:StartTime, I get an "Invalid Status - 2" in the response.

    So, how do I search Calendar folder so I get both past and future meetings. Note that startDate and endDate are set correctly.

    Thursday, October 3, 2013 2:09 AM

All replies

  • Hi,

    I am wondering if you found a solution. I have exact same problem. I need to retrieve all calendar items that overlap with given start time and end time.

    Thanks,

    Wednesday, February 22, 2017 6:22 PM