Jump to content

Recommended Posts

Microsoft Teams Notifications for WHMCS is a notification provider that delivers rule-based WHMCS alerts straight to your Microsoft Teams channels. It plugs into the native WHMCS notification system, so it appears next to Email and Slack under Configuration → System Settings → Notifications. It works with the current Teams Workflows trigger URL as well as legacy Incoming Webhook URLs, with no bot registration, no Azure application, no database changes and no addon activation.

Compatible with WHMCS 8.13+ and 9.x.

Owned License ($30.00) - https://www.hardsoftcode.com/cart/link/microsoft-teams-notifications-for-whmcs/owned

Source Code License ($200.00) - https://www.hardsoftcode.com/cart/link/microsoft-teams-notifications-for-whmcs/source

The Problem It Solves

WHMCS already knows when an invoice is paid, an order is placed, a ticket is opened or a service is suspended. But your team only finds out if someone is watching the admin area or an inbox.

Teams-based support and billing staff often miss these events, or rely on email rules that bury them. Microsoft also retired Office 365 connectors in Teams in May 2026, so older webhook-based integrations need a move to Workflows. This module solves both problems. It puts the right alerts in the right channel at the right time, and it supports the current Microsoft method.

What the Module Provides

The module turns WHMCS events into formatted alert cards inside Teams. WHMCS notification rules decide which event fires, which conditions apply and which provider receives the message. The module then handles the rest: it validates the webhook URL, builds a safe card, keeps it under the Teams size limit, retries without the optional action if Teams rejects the card, and removes the webhook token from logs.

A billing rule and a support rule can post to separate Teams channels while sharing one provider setup.

Features

Delivery

  • Native WHMCS provider, so events, conditions and rules stay inside WHMCS
  • Works with Teams Workflows trigger URLs and legacy Incoming Webhook URLs
  • Per-rule webhook override to send a rule to a different channel
  • Three message formats: Message + Card, Message only and Card only
  • Per-rule theme color with three- or six-digit hex values
  • Optional card header name and icon inside the card
  • Attributes such as client, invoice, service and department shown as card facts, with links back to WHMCS
  • Optional View in WHMCS button, with options to hide attributes and the link
  • Connection test when you save the provider

Reliability

  • Card size kept under the Teams 28 KB limit by trimming content in order
  • Markdown-aware truncation that closes unfinished code blocks
  • Retry without the View action if Teams rejects it, or strict delivery if you prefer failures to be visible
  • Clear, administrator-readable errors for HTTP 400, 401, 403, 404, 410, 413, 429 and 5xx responses, plus DNS, connection, timeout and TLS failures

Security

  • HTTPS only, with TLS verification and no redirects
  • Host allowlist for Teams and Power Automate domains, with an optional custom host setting
  • Webhook token and Workflows signature redacted in module logs
  • Mentions such as @everyone and @here neutralized so notification text cannot ping the channel
  • No client data stored by the module

Easy to Run

  • No database changes, no core file edits and no addon activation
  • Existing rules and settings kept when upgrading
  • Eight-page documentation manual with installation, settings, security and troubleshooting guides

Changelog v1.3.0

Added

  • Three per-rule message formats: Message + Card (both, default), Message only (message) and Card only (card)
  • Per-rule Webhook Override, so a rule can post to a different Teams channel without changing the provider
  • Optional Card Header Name and Card Icon URL branding inside the card
  • Per-rule Theme Colour validation: three- or six-digit hex, optional #, normalised to six uppercase digits
  • Per-rule Hide Attributes and Hide View Link toggles
  • Support for Power Automate Workflows trigger URLs alongside legacy Office 365 Incoming Webhook URLs, using the same MessageCard payload
  • Provider settings for Request Timeout, Strict Delivery and Allow Custom Host
  • Read-only Version row in the provider configuration dialog
  • Webhook validation before every request for both the provider URL and a per-rule override: HTTPS, no credentials, no fragment, host allowlist, path shape, port and signature rules
  • Actionable error mapping for HTTP 400, 401, 403, 404, 410, 413, 429 and 5xx, plus cURL DNS, connection, timeout and TLS failures
  • Detection of Teams errors returned inside an HTTP 2xx response
  • Log redaction for both legacy tokens and Workflows signatures
  • Payload size enforcement with fact trimming, message truncation and a clear failure when nothing can be removed
  • Markdown-aware truncation that closes an unterminated code fence
  • Mention neutralisation for @everyone, @here, @channel and @online
  • Full README and eight-page HTML documentation site

Changed

  • The default theme colour is now 0076D7 for both the test card and notifications
  • The connection test is always strict, so setup problems surface immediately
  • whmcs.json declares type: whmcs-notifications and version 1.3.0
  • Attribute values are HTML-decoded and stripped of HTML before rendering
  • Empty attributes no longer produce dangling separators or blank facts

Fixed

  • Undefined-index warnings when the webhook, theme colour or attributes were missing
  • cURL failures were ignored; the module now checks the error number, HTTP status and response body
  • A valid empty or JSON response was incorrectly treated as a failure because it was not the string 1
  • Rules with no attributes produced an empty card section
  • Long notifications could exceed the Teams payload limit
  • Repeated HTML-escaping of & in Workflows URLs no longer causes HTTP 401 on provider save; the module decodes every escape layer
  • Message Format now saves and reloads correctly when another provider also defines a format dynamic field; the Teams field uses messageFormat

Compatibility

  • Folder, class, display name and themeColor rule key are unchanged
  • Rules without messageFormat use the legacy format key, then default to both
  • Legacy markdown and embed format values are mapped, not rejected
  • Rule appearance uses negative hideAttributes and hideLink checkboxes, because WHMCS does not submit an unchecked rule checkbox. Positive showAttributes and includeLink values are still honoured
  • No database tables, columns or migration scripts

1794682209_01.jpg

1794682225_02.png

1794682239_03.png

1794682255_04.png

1794682272_05.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated