Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SaveChangesOptions Enum

Definition

Namespace:
Microsoft.Xrm.Sdk.Client
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

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.

Describes how the SaveChanges() method behaves when an error occurs while updating data in Microsoft Dynamics 365.

This enumeration supports a bitwise combination of its member values.

public enum class SaveChangesOptions
[System.Flags]
public enum SaveChangesOptions
[<System.Flags>]
type SaveChangesOptions = 
Public Enum SaveChangesOptions
Inheritance
SaveChangesOptions
Attributes

Fields

Name Value Description
None 0

The SaveChanges() method should throw an exception when an error occurs while updating data in Microsoft Dynamics 365. Value = 0.

ContinueOnError 1

The SaveChanges() method should continue applying changes to tracked entities in Microsoft Dynamics 365 even if an action fails. Value = 1.

Remarks

The SaveChanges() method applies changes to tracked entities in Microsoft Dynamics 365. If an error occurs while performing these updates, this enumeration indicates to the OrganizationServiceContext how it should handle errors. If the value is set to None and an error occurs, an exception is thrown with the SaveChangesResultCollection attached.

Applies to