CrmOutlookService.Sync Method (OutlookSyncType)
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)
Syntax
public void Sync(
OutlookSyncType syncType
)
Public Sub Sync (
syncType As OutlookSyncType
)
Parameters
syncType
Type: Microsoft.Crm.Outlook.Sdk.OutlookSyncTypeType: 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.
See Also
CrmOutlookService Class
Microsoft.Crm.Outlook.Sdk Namespace
Sample: Use Dynamics 365 for Outlook methods
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright