SharePoint Push Notifications For Client Applications

Category: developing apps for office 2013

Question

_db_ on Mon, 05 Feb 2018 23:06:26


I am working on an Outlook AddIn which displays sharepoint structure as PST (site, libraries, folders) and if a folder is selected, it displays content of that folder in Outlook email pane.

I am trying to avoid pulling sharepoint on regular intervals for updates to this structure but would rather like to get the updates pushed to me.  For example

1. user adds site A

2. my Outlook AddIn builds a tree like PST structure based on content of that site and shows every library, folder in that site

3. I can navigate through the PST site node to see its subsites, libraries, folders

4. I can navigate to these to see content (files) in it in the Outlook inbox pane

In order to update these, I have to frequently pull for updates and refresh the PST and content in it.  This leads to number of very complex issues and affects performance.  In addition, data is not updated until this pull is triggered.

What I want to achieve is to get notified every time a file, folder, library, metadata etc has changed (Added, Deleted, Modified) and pushed modified information so I can use it to update my structure in outlook more efficiently.  This reduces networking traffic and time to do an update and improves performance of my AddIn.  It also ensures that user has always updated data without lagging performance or need to manually refresh or wait for pull time interval to get pull update.  

SharePoint versions 2010 and higher

Outlook version 2010 and higher

So, app is add in to outlook, not running on server

App is running on same network

App has same permissions on SharePoint as the current user using the app

-- d.

Replies

Terry Xu - MSFT on Wed, 07 Feb 2018 00:35:08


Hello _db_,

It seems that you are now using share point api to proactively pull data from site but you want the site notify you once the site has any update, right?

As far as I know, share point api does not provide a built-in function/property to do this. If frequently pulling data leads issues, as workaround, you could increase time interval for better performance.

Best Regards,

Terry

_db_ on Wed, 07 Feb 2018 01:19:11


We can pull data every 5, 15, 30, 60min, 1 day, 2 days, ... but that solves nothing.  Pulling less regularly means data is not updated on client until the pull completes.  It also means that you are more likely to pull larger amount of data if there were more updates to data on SP which affects performance.

Having push notifications either (a) pushing changes to client or (b) some kind of notification letting client identify item that needs to be pulled and then pulling it would result in smaller targeted pull increasing data accuracy and decreasing resource starvation

Terry Xu - MSFT on Wed, 07 Feb 2018 07:16:46


Hello,

>>Having push notifications either (a) pushing changes to client or (b) some kind of notification letting client identify item that needs to be pulled and then pulling it would result in smaller targeted pull increasing data accuracy and decreasing resource starvation

So you could notify outlook addin to pull data only once the site has update now, its a good news. What do you mean "smaller targeted pull increasing data accuracy and decreasing resource starvation"?

This forum is for issue related to Outlook Object model and if you have issue pulling data from share point site, I think it should be more related to share point development. I would suggest you post on a Share Point development forum.

Thanks for understanding.

Best Regards,

Terry

_db_ on Wed, 07 Feb 2018 17:15:39


Hello,

>>Having push notifications either (a) pushing changes to client or (b) some kind of notification letting client identify item that needs to be pulled and then pulling it would result in smaller targeted pull increasing data accuracy and decreasing resource starvation

So you could notify outlook addin to pull data only once the site has update now, its a good news. What do you mean "smaller targeted pull increasing data accuracy and decreasing resource starvation"?

This forum is for issue related to Outlook Object model and if you have issue pulling data from share point site, I think it should be more related to share point development. I would suggest you post on a Share Point development forum.

Thanks for understanding.

Best Regards,

Terry


MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

By targeted pull I mean "pull only what has changed and only when it has changed".  Some kind of push notification identifying what changed and when it changed would allow this.  On the other side pulling on intervals is more heavy weight, it is checking if something has changed and if it has then it pulls it.  But it does this in a time interval, say 5min.  So that means, user has to wait for 5 min to expire before being sure data is updated.


Tao Zhou - MSFT on Thu, 08 Feb 2018 07:32:37


Hi _db_,

>> What I want to achieve is to get notified every time a file, folder, library, metadata etc has changed (Added, Deleted, Modified) and pushed modified information

It is impossible. The SharePoint does not provide push notification features. The SharePoint would not tell you whenever and whatever changed in the Sharepoint site.

The only way is to pull from SharePoint on regular Intervals, to avoid hurt performance of your current project, you may consider moving pulling features from your project to a separate Windows Service and run this task on regular Intervals.

Best Regards,

Tao Zhou

_db_ on Thu, 08 Feb 2018 23:59:22


Thanks Tao

Tao Zhou - MSFT on Fri, 09 Feb 2018 01:26:32


Hi _db_,

If there is no other issue, I would suggest you mark the helpful reply as answer to close this thread.

Best Regards,

Tao Zhou