About the AdvisoryMessage class

The advisoryMessage class contains methods which define the advisory message object. The advisory message object is contained in the Response object. Every method in the InteractAPI returns a Response object. (Except for the executeBatch method, which returns a batchResponse object.)

If there is an error or a warning, the Unica Interact server populates the advisory message object. The advisory message object contains the following attributes:

  • DetailMessage-a verbose description of the advisory message. This attribute may not be available for all advisory messages. If available, the DetailMessage may not be localized.
  • Message-a short description of the advisory message.
  • MessageCode-a code number for the advisory message.
  • StatusLevel-a code number for the severity of the advisory message.

You retrieve the advisoryMessage objects by using the getAdvisoryMessages method.