Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.