@session::reportInteraction

Reports when a notification (other than the initiating notification) has been successfully reported.

Note: The previous version of this method, reportInteraction(long notificationId, String incidentId), has been deprecated. If you are upgrading from a previous version of xMatters, you must update your script manually.

Syntax:

@session::reportInteraction(long notificationId, long sessionNotificationId, String message)

Parameters:

Returns:

(Boolean) true if the response can be processed, otherwise false.

Example:

The following example of the reportInteraction method is extracted from the default script package:

 IF(!$interactionReported)

    $initNotId = $notificationIds::get(0)

    $time = @script::formatDate($session.initialTime, $recipient.timeZone, "HH:mm:ss")

    $interactionReported = @session::reportInteraction($notId, $initNotId, $time)

    IF($interactionReported)

      $time = @script::formatDate($session.initialTime, $recipient.timeZone, "MM/dd/yyyy HH:mm:ss")

      @interactionMessage = @event::createExternalServiceMessage()

      $interactionMessage.message = "Event being processed within Phone session. " & $time

      @interactionMessage::send()

    ENDIF

 ENDIF