- 7 minutes to read

ResendWebhookSettings - System Parameter

ResendWebhookSettings defines the Webhooks that users can pick as the target when they repair and resend a logged message (Log Event) from a Log View in the Web Client. Each Webhook has a display name, a URI, and optional OAuth 2.0 or Basic Authentication; your own Webhook then decides where the message goes. These Webhooks are not the HTTP Webhook Alarm Plugin, which sends monitoring alerts.

ResendWebhookSettings opened from the System Parameters list with one Webhook entry for a Contoso order desk and saved, then a refused order in a Log View opened with Repair and Resubmit, Webhook picked as the transport type with the order desk pre-selected from the event's EndPointUri context value, sent, and the order desk showing the received order with the context value as an HTTP header, animated walkthrough (7.12)
Animated walkthrough: with one enabled Webhook entry, Repair and Resubmit offers Webhook as the transport type. The event's EndPointUri context value pre-selects the matching Webhook, and the Webhook receives the repaired message as the body, with the extracted context values as HTTP headers.

At a Glance

Property Value
Key ResendWebhookSettings
Data type json
Default Empty (no Webhooks configured)
Read by Web API (it lists the Webhooks for the Resend and Repair dialogs and makes the call)
Takes effect Within about 15 seconds; no restart needed
Status ✅ Active
Since Nodinite 5.4; authentication from Nodinite 6.1; encrypted secrets with the PROTECTED_1. prefix in Nodinite 7

How It Works

graph LR logEvent["fa:fa-envelope Log Event"] --> |Repair and resend| webhook{"fa:fa-code Your Webhook"} webhook --> |Office hours| mail["fa:fa-envelope Mail"] webhook --> |Statistics| dw["fa:fa-database Data Warehouse"] webhook --> |ERP| erp["fa:fa-building Salesforce, SAP, Dynamics 365, ..."] style logEvent fill:#2678BD,color:#fff style webhook fill:#E47528,color:#fff style mail fill:#3F827B,color:#fff style dw fill:#3F827B,color:#fff style erp fill:#3F827B,color:#fff

Your Webhook receives the repaired message and forwards it with your own logic. Blue: the Log Event in Nodinite; orange: your Webhook; green: the targets your Webhook forwards to.

The Webhook option is available when all of these hold:

  • AllowResubmit and AllowRepair are true. These master switches remove Resend and Repair from Nodinite when false, whatever the permissions say.
  • For the Repair dialog, the user's Role has the Allow Resend and Allow Repair permissions on the Log View, see Permission Set for Log Views.
  • Enabled is true in this parameter. The dialogs list only the Webhook entries with Enabled set to true, sorted by Order, then by DisplayName.

The context value ExtendedProperties/1.0#EndPointUri isn't required; it pre-selects a Webhook (see EndPointUri in Context Options):

  • When the Log Event has it, the entry whose URI equals it is chosen automatically. The Resend dialog then picks Webhook by itself.
  • Without it, the only entry is chosen when EditableURI is false. With EditableURI set to true, the user types the URI.

What the Webhook Receives

  • A POST to the entry's URI, with Content-Type: application/json;charset=utf-8.
  • The message as the request body.
  • The context values that the ExtractContextValues rules pick, plus any the user adds under Context in the dialog, as HTTP headers.
  • With Authentication, an OAuth 2.0 access token (client credentials) or Basic credentials.

A successful Repair writes a Log Audit entry (Message for event '…' has been repaired. Message successfully sent to Webhook: …). With Add comment ticked, which is the default, it also adds a comment to the Log Event.

The repair steps themselves are described in What is a Log View?.

Tip

To develop a custom Webhook, test it with the free webhook.site service to capture what the resend operation sends.

Value Format

Root Object

Property Type Default Meaning
Enabled boolean — true offers the Webhook option in the Web Client; false hides it.
EditableURI boolean — true lets the user type any URI for the Webhook; false restricts the user to the configured URIs, and the Web API refuses any other URI (Webhook not found from the pre-configured webhooks).
ExtractContextValues array — Rules that pick context properties from the Log Event and use them as defaults for the Webhook call. Each rule has the properties below.
Webhooks array — The Webhook entries, see Webhook Object.

ExtractContextValues Rule

The same rule format as ResubmitContextValuesForActiveMQ.

Property Type Meaning
MessageTypeIds array of integers The Message Types the rule applies to. [] or null applies it to all Message Types.
KeyRegEx string Regular expression matched against context property keys. Escape backslashes for JSON (\\.).
KeyGroup integer Which regex group becomes the key: 0 uses the whole key, 1 the first group.

Webhook Object

Property Type Meaning
Enabled boolean true makes the entry available in the Web Client.
DisplayName string The name the user sees.
Description string A short description shown with the entry.
URI string The address of the Webhook.
Order integer Display order when there are several entries.
Authentication object Optional. Omit it for a Webhook without authentication. See Authentication Object.

Authentication Object

Property Type Used with Meaning
Enabled boolean both true sends credentials with the call.
Type string — client_credentials (OAuth 2.0) or basic (Basic Authentication).
ClientId string client_credentials The OAuth 2.0 client ID.
ClientSecret string client_credentials The client secret. Enter it in clear text; Nodinite encrypts it and stores it with the PROTECTED_1. prefix.
OpenIdEndpointConfiguration string client_credentials URL of the identity provider's .well-known/openid-configuration document.
Scope string or null client_credentials Optional OAuth 2.0 scope.
Username string basic The user name.
Password string basic The password. Enter it in clear text; Nodinite encrypts it with the PROTECTED_1. prefix.
Protected boolean both Used by Nodinite 6 to mark an encrypted secret. Nodinite 7 uses the PROTECTED_1. prefix instead, so leave it out.

Secrets are encrypted with the same mechanism as other Nodinite secrets, see Secret Management. On the edit page, a stored secret shows as ********:

  • Leave ******** as it is to keep the secret.
  • Type a new clear-text value to replace it.
  • Remove the field to clear it.

A Webhook keeps its secret by its DisplayName, or by its URI when you change the DisplayName. Secrets never leave the Web API: the Webhook list it returns to the dialogs has no Authentication.

Example

Three Webhooks: one without authentication, one with OAuth 2.0, and one with Basic Authentication. The PROTECTED_1.… values are shortened fragments of what Nodinite stores after encryption; the real values are much longer.

{
  "Enabled": true,
  "EditableURI": true,
  "ExtractContextValues": [
    {
      "MessageTypeIds": [],
      "KeyRegEx": "ExtendedProperties/1\\.0#(EndPointUri)",
      "KeyGroup": 1
    },
    {
      "MessageTypeIds": [],
      "KeyRegEx": "x-ms-client-tracking-id",
      "KeyGroup": 0
    }
  ],
  "Webhooks": [
    {
      "Enabled": true,
      "DisplayName": "The Webhook",
      "Description": "Use your custom built Webhook to resend Log Events",
      "URI": "https://127.0.0.1",
      "Order": 0
    },
    {
      "Enabled": true,
      "DisplayName": "OAuth Webhook Example",
      "Description": "Use a custom built Webhook with OAuth 2.0 authentication to resend Log Events",
      "URI": "https://localhost/secure",
      "Order": 1,
      "Authentication": {
        "Enabled": true,
        "Type": "client_credentials",
        "ClientId": "webhook",
        "ClientSecret": "PROTECTED_1.WindowsCertificateStore.BCEBB8FD5C77E8E58853E03F6015A9A4223BC9C6.AES256-RSA-OAEP.…",
        "OpenIdEndpointConfiguration": "http://localhost:8080/auth/realms/dev/.well-known/openid-configuration",
        "Scope": null
      }
    },
    {
      "Enabled": true,
      "DisplayName": "Basic Authentication Webhook Example",
      "Description": "Use a custom built Webhook with basic authentication to resend Log Events",
      "URI": "https://127.0.0.1",
      "Order": 2,
      "Authentication": {
        "Enabled": true,
        "Type": "basic",
        "Username": "DaUserName",
        "Password": "PROTECTED_1.WindowsCertificateStore.BCEBB8FD5C77E8E58853E03F6015A9A4223BC9C6.AES256-RSA-OAEP.…"
      }
    }
  ]
}

Next Steps

Note

Nodinite v6 is no longer supported. The Protected attribute is only relevant for configurations carried over from v6.