Reference > Shop flow URLs > Catalog subsystem URLs > Interest lists
InterestItemDelete URL
This site level command deletes catalog entries from one or more interest item lists.
URL structure
- http:// host_name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path.
name-value pair with the & character. For a detailed description of the parameters and their values, see 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 URL is run. If the value for this parameter is carried from the previous command, storeId is not required, otherwise, please do specify storeId.
- catEntryId
- Specifies the reference number of catalog entries or items, from the CATENTRY_ID column in the IITEM table, to delete from the interest item list. If "*" is specified, the command behaves as if all interest items in the given interest item list were specified. This parameter can be repeated.
- listId
- Specifies the interest item list from which catalog entries should be deleted; abbreviations may be used
- If this parameter is missing, the command behaves as if "." were specified.
- If "." is specified, the GetCurrentIIlistsCmd task command is invoked to obtain the customer's current interest item list, and the command behaves as if the current interest item list had been specified. If the GetCurrentIIlistsCmd task command determines that there is no current interest item list, the most recently updated list is used.
- If "*" is specified, the command behaves as if all the customer's interest item lists were specified.
This parameter can be repeated.
- listIdName
- Upon completion of this URL, 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
The following example deletes the catalog entries with reference numbers 3 and 17 from the customer's current interest item lists, and then calls the InterestItemDisplay command:
http://host_name/webapp/wcs/stores/servlet/InterestItemDelete? URL=/webapp/commerce/InterestItemDisplay&catEntryId=3&catEntryId=17
Behavior
- Calls the GetCurrentIIListsCmd task command when the listId parameter is specified as "." or omitted.
- The AuthIIListAccessCmd task command is called to verify write permission for each of the specified interest item lists.
- Deletes the specified products from the specified interest item lists by removing rows from the IITEM table for the customer. The product is not deleted from any order.
- If some of the products specified by catEntryId are not in any of the specified interest item lists, then the command does nothing. If no products are specified, this URL does nothing.
Exception conditions
If the task command assigned to the AuthIIListAccessCmd process task fails, the function sets the AuthIIListAccessErr exception task to handle the error.
Related concepts
Related reference