none
EWS push notification - folder unread count RRS feed

  • Question

  • Hi,

    When subscribing to push notification for ModifyEvent, we get information on folder modification with total unread count for that folder. Instead, is there a way to get the unread count for a specified period of time (say in last 3 days).

    What's the recommended way to solve this ?

    -Sagar

    Friday, April 10, 2015 10:44 PM

Answers

  • You can't change what the subscription event sends back to you, what you will need to do to get that information is using a FindItem query to query the folder in question with a SearchFilter/Restriction to limit the results based on Time and isRead Status. You can limit the results set size by just specifying to only return the IdOnly for the Items you want returned. Else if you have a SearchFolder in the Mailbox with that criteria you could just do a Get Folder on that Search Folder.

    Cheers
    Glen

    Monday, April 13, 2015 4:20 AM

All replies

  • You can't change what the subscription event sends back to you, what you will need to do to get that information is using a FindItem query to query the folder in question with a SearchFilter/Restriction to limit the results based on Time and isRead Status. You can limit the results set size by just specifying to only return the IdOnly for the Items you want returned. Else if you have a SearchFolder in the Mailbox with that criteria you could just do a Get Folder on that Search Folder.

    Cheers
    Glen

    Monday, April 13, 2015 4:20 AM
  • Thanks Glen for the suggestion.
    Wednesday, April 22, 2015 5:23 PM