Synchronous authentication of messages

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • Inbound message authentication is performed before the message is added to the hybrid queue.

    This code has to be implemented in the provider attribute script. For more information, see Virtual Agent action scripts.

    Example: Synchronous authentication of messages
    var validated = sn_cs.VASystemObject.validateMessage(providerApp.sysId, payload, JSON.stringify(headers));
    if (validated === false) {
        response.setStatus(401);
        response.setContentType("test/xml")
        var writer = response.getStreamWriter();
        writer.writeString(