.postMessage   RC.Server.SalesOrder.postMessage

Posts a new message to an existing sales order.

METHOD PARAMETERS
Parameter Options Type Default Description
id required numeric (none) Sales order ID to post the message to.
parameters required hashmap or POST data (none) Message post parameters. See parameters section below for more information.
options optional hashmap (none) Request options. See the options section below for details
parameters
Parameter Options Type Default Description
message required string (none) Free text message to be added to the sales order.
options
Parameter Options Type Default Description
success optional function (none) Default success handler.
failure optional function (none) Default failure handler.
EXAMPLE
RC.Server.SalesOrder.post( {{ order.id }}, $('#sales-order-post-form').serialize(), { 
	success: function(context,html,xml) { alert('Message posted successfully!'); }, 
	failure: function(context,errorMsg,xml,XHR) { alert(errorMsg); } 
} );