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.
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
- discountPrioritySet
Type: Microsoft.CommerceServer.Marketing..::.DiscountPrioritySet
The DataSet containing the updated DiscountPriorities. Inserts and deletes are not accepted.
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
- 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.