CrmOutlookService.Sync Method (OutlookSyncType)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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.

Namespace:   Microsoft.Crm.Outlook.Sdk
Assembly:  Microsoft.Crm.Outlook.Sdk (in Microsoft.Crm.Outlook.Sdk.dll)

public void Sync(
	OutlookSyncType syncType
)

Parameters

syncType
Type: Microsoft.Crm.Outlook.Sdk.OutlookSyncType

Type: OutlookSyncType. The target to which synchronization needs to be triggered: Outlook, the Microsoft Dynamics 365 Address Book Provider or the Offline database.

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.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: