Sharepoint 2010 BCS - how to set cache expiration date?

I want to receive data from SAP "only once a day" and store it in the BCS Sharepoint 2010 cache. How / Where can I make this parameter that allows BCS to know that it should only query the SAP data source once a day?

Any help is really appreciated.

+4
source share
3 answers

You should be able to interact with SAP through the ISubscription interface. From there, you can set the expiration time for specific queries and associations. So, for an ISubscriptionQuery query you can set a one-day expiration like this:

 query.ExpireAfter = TimeSpan.FromDays(1); 

For more information on setting these properties, see the MSDN article:

http://msdn.microsoft.com/en-us/library/ff464396.aspx#Y342

0
source

Does the server need to receive SAP data once a day and cache it? If so, the BCS cache will not help, because the server only caches the BCS model. BCS data is cached on the client side. The ISubscription interface will work for the client, but this means that SAP data will be requested once for each user.

0
source

Source: https://habr.com/ru/post/1344510/


All Articles