EWS push notification - folder unread count

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

April 10th, 2015 6:45pm

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

Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 12:21am

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

April 13th, 2015 4:20am

Thanks Glen for the suggestion.
Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 1:24pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics