Share via


SaveCampaignEventType Method

Insert a new Campaign Event (if the identifier is zero), or updates an existing Campaign Event (if the identifier is not zero).

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function SaveCampaignEventType ( _
    eventType As CampaignEventTypeData _
) As CampaignEventTypeData
'Usage
Dim instance As MarketingWebService
Dim eventType As CampaignEventTypeData
Dim returnValue As CampaignEventTypeData

returnValue = instance.SaveCampaignEventType(eventType)
[WebMethodAttribute]
public virtual CampaignEventTypeData SaveCampaignEventType(
    CampaignEventTypeData eventType
)
[WebMethodAttribute]
public:
virtual CampaignEventTypeData^ SaveCampaignEventType(
    CampaignEventTypeData^ eventType
)
public function SaveCampaignEventType(
    eventType : CampaignEventTypeData
) : CampaignEventTypeData

Parameters

  • eventType
    Type: CampaignEventTypeData
    The Campaign Event data to be saved (set to zero for an insert).

Return Value

Type: CampaignEventTypeData
A CampaignEventTypeData with the specified Campaign Event.

Exceptions

Exception Condition
ArgumentOutOfRangeException

eventType is less than zero.

NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityStateException

The Campaign Event has been deleted (update).

EntityDoesNotExistException

The eventType being updated does not exist.

StringLengthValidationException

One if the property values is too long or too short.

DuplicateEntityNameException

An entity with this name already exists.

DuplicateEntityIdException

An entity with this eventType Id already exists.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Saves (inserts or updates) a Campaign Event to the database. Saves the specified Campaign Event object to the database. Inserts a new Campaign Event (if the identifier is zero), or updates an existing Campaign Event (if the identifier is not zero).

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace