ShopperCreateForumMessage command

Creates a customer message by inserting a row into the FORUMMSG table. A message may be new or a response to an existing message. All new customer messages are private. You may change the messages to public with the ModifyForumMessage command.   

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, ShopperCreateForumMessage  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

body
(Required for new messages) The text of the message.  
aucrfn
(Required) The auction reference number for the message.
subject 
(Required for new messages) The subject of the message.
URL
(Required) The URL that is called upon successful completion.
msg_id
(Required for replies) The message reference number. This parameter is specified for a response to an existing message, but not for a new message.  
forum_id
(Required for new messages) The forum reference number. This parameter is specified for a response to a new message, but is optional for an existing message.

Example 1

This example creates a new customer message, and redirects to the specified URL:

http://myhostname/webapp/wcs/stores/servlet/ShopperCreateForumMessage
   ?body=Some_message_text&aucrfn=200122&subject=New_item_for_sale
   &url=ShopperForumMsgListView&forum_id=15

Example 2

This example creates a customer response to an existing forum message, and redirects to the specified URL:

http://myhostname/webapp/wcs/stores/servlet/ShopperCreateForumMessage
   ?body=Some_message_text&aucrfn=200122&subject=New_item_for_sale
   &url=ShopperForumMsgListView&forum_id=15&msg_id=30924

Behavior

Exception Conditions

Throws ECSystemException if unable to create the new message in the FORUMMSG table.