Already existing Outlook items, which are still based on an older version of the OData service, can be upgraded by invoking a silent query operation of the SAP Gateway service. On starting Microsoft Outlook, older items can be upgraded to latest OData service version by:
This code opens a registry key and stores service version value in registry. If the version in the registry is different from version in App.config file, the Microsoft Outlook items are upgraded, and registry value is updated with the latest version value. If the registry value is not found then it is the first time invocation and registry values are stored. If the version values are the same then the upgrade is not triggered.
This code gets the current version of the Time Management service and stores it in a registry location. Adjust the code according to the in-line comments.
This code updates the service version to latest version. Adjust the code according to the in-line comments.