Jaa


UpdateDiscountPriorities Method

Saves the priority updates in a data set representing discount priorities.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub UpdateDiscountPriorities ( _
    discountPrioritySet As DiscountPrioritySet _
)
'Usage
Dim instance As CampaignItemManager
Dim discountPrioritySet As DiscountPrioritySet

instance.UpdateDiscountPriorities(discountPrioritySet)
public void UpdateDiscountPriorities(
    DiscountPrioritySet discountPrioritySet
)
public:
void UpdateDiscountPriorities(
    DiscountPrioritySet^ discountPrioritySet
)
public function UpdateDiscountPriorities(
    discountPrioritySet : DiscountPrioritySet
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

discountPrioritySet is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

DataSet does not have the correct format. Please see the exception message for more details.

ArgumentOutOfRangeException

The CampaignItem provided in a DataSet row is not a valid Id.

EntityDoesNotExistException

The CampaignItem does not exist.

EntityStateException

The CampaignItem has been deleted.

DatabaseIntegrityException

A discount record with the specified Id does not exist, but the CampaignItem record itself exists. This indicates a data integrity problem.

Remarks

Deletions or insertions are not supported by UpdateDiscountPriorities. UpdateDiscountPriorities requires a higher level of privilege than just UpdateCampaignItem privilege. This is because it performs bulk-update of data without requiring an approval process. The Expectation is that the DataSet is built by copying data from a DataSet retrieved in a unified search that includes the discount priority information for the discounts to be updated (e.g. search for all active discounts and return the Priority column).

Permissions

See Also

Reference

CampaignItemManager Class

CampaignItemManager Members

Microsoft.CommerceServer.Marketing Namespace