InterestItemListDelete command

This site level command deletes the specified interest item lists and all items in them. 

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, InterestItemListDelete  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

langId
Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table.
forUser
The logon ID of the user on whose behalf the command will be run; only a person with the authority to process orders can specify this parameter.
forUserId
Same as forUser, but identifying the user by the internal user ID, as found in the USERS table.
URL
(Required) The URL to be called when the command completes successfully.
storeId
The store reference number under which this command is run. If the value for this parameter is carried from the previous command, storeId is not required, otherwise, specify storeId.
listId
Specifies the interest item lists which should be deleted; abbreviations may be used.
  • If "." is specified, the GetCurrentIIListsCmd process task is invoked to obtain the current interest item lists, and the command behaves as if the current interest item lists were specified. If there are none, the most recently updated interest item list is used.
  • If "*" is specified, the command behaves as if all customer's interest item lists were specified.
This parameter can be repeated.
listIdName
Upon completion of this command, if redirection is used to cause a second command to run, then listIdName specifies the parameter name of the second command that will use the value of the listId parameter in this first command. Most often, the second command also has a listId parameter and thus &listIdName=listId. This parameter can be repeated.

Example

This example deletes all of a specified customer's interest item lists and the items in them:

http://host_name/webapp/wcs/stores/servlet/InterestItemListDelete?
listId=*&URL=/webapp/wcs/stores/servlet/InterestItemDisplay

Behavior

Exception conditions

If the task command assigned to the AuthIIListAccessCmd process task fails, it sets the AuthIIListAccessErr exception task to handle the error.