WebSphere Commerce EnterpriseWebSphere Commerce Professional

ShopperCreateForumMessage URL

Creates a customer message by inserting a row into the FORUMMSG table.

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.

URL structure

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

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

  • Validates the parameters.
  • Calls the ForumMessageHelper to add the new message to the FORUMMSG table.
  • Redirects to the specified URL.

Exception Conditions

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