SaveAction

The SaveAction object defines how upsert acts on nested objects for Create and Update methods. You can apply SaveAction to Subscriber, List, DataExtension, Role, and Send objects.

The Default property indicates whether the object uses the default action when saving an object. In general, the default action is the same as the method being called. If the Create method is called, the object is inserted into the system if it does not exist. If it does exist, an error returns stating that the object already exists. If the Update method is called, the object is updated in the system if it already exists. If it does not exist, an error returns stating that the object does not exist.

NameData TypeDescription
AddOnlyEnumerationIndicates that data is only added and not updated during a save action.
DefaultEnumerationSpecifies default source of salutation when building an email (SalutationSourceEnum). Use the default action when saving an object. (SaveAction)
DeleteEnumerationIndicates whether an object is deleted.
NothingEnumerationIndicates that nothing is saved.
UpdateAddEnumerationIndicates an UpdateAdd type for a save action. If this property is specified, the save action updates existing information and adds new information.
UpdateOnlyEnumerationIndicates an UpdateOnly type for a save action. If this property is specified, the save action with update existing information only.