ImportPromoCodes Method

This method is used to generate promo codes for a discount.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub ImportPromoCodes ( _
    importToken As Guid _
)
'Usage
Dim instance As MarketingWebService
Dim importToken As Guid

instance.ImportPromoCodes(importToken)
[WebMethodAttribute]
public virtual void ImportPromoCodes(
    Guid importToken
)
[WebMethodAttribute]
public:
virtual void ImportPromoCodes(
    Guid importToken
)
public function ImportPromoCodes(
    importToken : Guid
)

Parameters

  • importToken
    Type: System..::.Guid
    Token that identifies the file that needs to be imported.

Exceptions

Exception Condition
NotAuthorizedException

The calling user is not authorized to perform this operation.

ServerFaultException

An unexpected error occurred on the server.

Remarks

The discount must already be associated with a PromoCodeDefinition.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace