@externalServiceMessage::isValid

Determines whether the message is valid; the script should use this message before attempting to send the message to the external service.

Available in versions 4.0 (patch 009 and later) and 4.1.

Syntax:

@externalServiceMessage::isValid()

Parameters:

None

Returns:

Boolean: true if the message is valid.

Example:

The following code illustrates

@connectionEventMessage = @initiatingEvent::createExternalServiceMessage()

$valid = @connectionEventMessage::isValid()
 
IF ($valid)
  $connectionEventMessage.message = ...
  @connectionEventMessage::send()
ENDIF