CrmOutlookService.Sync(OutlookSyncType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Triggers a synchronization event between Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access in Microsoft Office Outlook and the Microsoft Dynamics 365 server.
public:
void Sync(Microsoft::Crm::Outlook::Sdk::OutlookSyncType syncType);
public void Sync (Microsoft.Crm.Outlook.Sdk.OutlookSyncType syncType);
member this.Sync : Microsoft.Crm.Outlook.Sdk.OutlookSyncType -> unit
Public Sub Sync (syncType As OutlookSyncType)
Parameters
- syncType
- OutlookSyncType
The target to which synchronization needs to be triggered: Outlook, the Microsoft Dynamics 365 Address Book Provider or the Offline database.
Remarks
Triggers a synchronization event between Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access and the Microsoft Dynamics 365 Server. The synchronization occurs in the background and there is no user interaction. If there is a failure during synchronization there is no feedback provided. The method is synchronous and will not return until the synchronization operation is completed.
Throws an InvalidOperationException
if the client is not loaded, Dynamics 365 for Outlook client (no offline access) is installed or if the client is offline.
Throws an ArgumentException
if the syncType
is not supported.