Share via


CrmOutlookService.Sync Method

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Triggers a synchronization event between Microsoft Dynamics CRM for Microsoft Office Outlook with Offline Access in Microsoft Office Outlook and the Microsoft Dynamics CRM server.

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

Syntax

'Declaration
Public Sub Sync ( _
    syncType As OutlookSyncType _
)
public void Sync (
    OutlookSyncType syncType
)

Parameters

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

Remarks

Triggers a synchronization event between Microsoft Dynamics CRM for Microsoft Office Outlook with Offline Access and the Microsoft Dynamics CRM 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, CRM for Outlook client (no offline access) is installed or if the client is offline.

Throws an ArgumentException if the syncType is not supported.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

CrmOutlookService Class
CrmOutlookService Members
Microsoft.Crm.Outlook.Sdk Namespace

Other Resources

Sample: Use Outlook Methods

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.