November Happy Hour will be moved to Thursday December 5th.

Enum SaveAction

Describes the type of action to perform when saving a content item.

Namespace: EPiServer.DataAccess
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public enum SaveAction
Remarks

This enumeration contains both primary commands (CheckIn, Publish, Schedule) that defines the main action and option flags (ForceNewVersion, ForceCurrentVersion) that provide additional information about the save operation.

Fields

Name Description
ActionMask

Mask that can be used to clear option flags from a combined SaveAction value.

CheckIn

Save and transition content to CheckedIn state.

CheckOut

Save and transition content to a CheckedOut state, creating a new version if not already checked-out.

Default

Save content without updating the status.

DelayedPublish

NOTE: This action has been replaced by the Schedule primary action and will be removed in a future version.

Save and check in content, creating a new version only if necessary and sets the content as delayed publish.

ForceCurrentVersion

Option that will ensure that the any existing version is updated.

ForceNewVersion

Option that ensures that a new version is created when saving preventing the current content from being overwritten.

None

Replaced by Default.

Patch

Update the current version without changing the status or trigger any validation.

Publish

Save and publish content. Content will transition to a Published state.

Reject

Save and transition content to the Rejected state.

RequestApproval

NOTE: This is a pre-release saveAction that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version.

Save and transition content to AwaitingApproval state.

Save

NOTE: This action has some inconsistent behavior and has been deprecated in favour of either Default or CheckOut depending on your needs. This action will be obsoleted and removed in a future version.

Save content, leaving it in a checked out state.

Schedule

Save and schedule content to be published. Content will transition to a DelayedPublish state.

SkipSetCommonDraft

Option to avoid setting the version as the commond draft in cases where the save results in a new version being created.

SkipValidation

Option that indicates that the content data should not be validated against IValidationService.

Extension Methods