SitecoreDXG Documention
  • SitecoreDXG: The Documentation Experience Generator
  • Overview
    • SitecoreDXG: The Documentation Experience Generator
    • Comparison with SitecoreUML
    • CI/CD Integration
    • Helix Dependency Validation
  • Getting Started
    • Compatibility and System Requirements
    • Installing SitecoreDXG
      • General Installation
        • 1. Install the SitecoreDXG Generation Service
        • 2. Install RabbitMQ
        • 3. Install the SitecoreUML Service for Sitecore
        • 4. (Optional) Configure the Documentation Configuration Item for your Solution
        • 5. Install the Default RabbitMQ Middleman in a Custom Location
        • 6. (Optional) Integrate SitecoreDXG into your CI/CD Pipeline
      • Developer Installation
        • 1. Install the SitecoreDXG Generation Service for Developers
        • 2. Install RabbitMQ for Developers
        • 3. Install the SitecoreUML Service for Sitecore for Developers
        • 4. (Optional) Configure the Documentation Configuration Item for your Solution
        • 5. (Optional) Install the Default RabbitMQ Middleman for Developers
        • 6. (Optional) Integrate SitecoreDXG into your CI/CD Pipeline for Developers
    • Upgrading and Downgrading
    • Downloads
    • Using SitecoreDXG
      • Using the Default RabbitMQ Middleman and Trigger
        • Using the DocumentationConfiguration Object
      • Using the Provided AWS S3 Deploy Completion Handler
      • Using the Provided Azure Blob Storage Deploy Completion Handler
  • Architecture
    • Architecture Overview
    • Roles
      • Role Combinations
    • Components
    • Plugins
      • Trigger Plugins
      • Completion Handler Plugins
    • Middlemen
    • Understanding the Default RabbitMQ Middleman and Trigger
  • How To
    • CI/CD Integration
      • Integrating SitecoreDXG into your CI/CD Pipeline
      • Integrating the Default TeamCity RabbitMQ Meta-Runner
    • Creating a Custom Trigger
      • Executing Documentation Generation
      • Executing Meta-Data JSON Generation
    • Slack and Microsoft Teams Integration
      • Integrating with Slack via Webhooks
      • Integrating with Microsoft Teams via Webhooks
    • Creating a Custom Completion Handler
    • Creating a Custom Middleman
    • Viewing Helix Validation Errors
  • About the Generated Documentation
    • Overview
    • Models
      • Template Model
      • Template Field Model
      • Template Folder Model
      • Parent-Child Relationships of Models
      • Inheritance Relationship Model
      • Dependency Relationship Model
    • Views
      • Template View
      • Template Field View
      • Template Folder View
      • Parent-Child Relationship View
      • Inheritance Relationship View
      • Dependency Relationship View
    • Diagrams
      • SitecoreUML Syntax
      • Templates Diagram
      • Template Folders Diagram
      • Layer Diagrams
      • Module Diagrams
      • Module Templates Diagrams
    • Samples
Powered by GitBook
On this page
  • Sample Notification
  • Setup
  1. How To
  2. Slack and Microsoft Teams Integration

Integrating with Slack via Webhooks

PreviousSlack and Microsoft Teams IntegrationNextIntegrating with Microsoft Teams via Webhooks

Last updated 6 years ago

As of version 1.1.0, SitecoreDXG now supports integration with Slack for completion notifications via Slack's Incoming Webhooks API. Like all logic that runs after generation completes, the Slack integration is provided by a native that calls the Slack API to post a message with some basic information about the generation and any that were identified.

Sample Notification

Depending on the information that you send in via the DocumentationConfiguration property of the JSON object, you should see a notification similar to the following sample appear in your Slack channel after generation completes:

Setup

Fortunately, Slack was nice enough to make the setup super straightforward:

  1. Copy your new Incoming Webhook URL for use in the next step

{
    DocumentationConfiguration: {},
    CompletionHandlers: [{
        ID: "Slack_Notifier",
        Params: {
            "Url": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
        }
    }]
}
  1. DocumentationTitle

  2. CommitAuthor

  3. CommitHash

  4. CommitLink

  5. DeployLink

  6. ProjectName

  7. EnvironmentName

for your SitecoreDXG notifications (you just enter a name and select your desired workspace)

for your new app (you just check the box to enable them for your app)

for your new app (you pick the channel that you want to post the messages to and click "Authorize")

Create/update the JSON file at your with the options object to be passed into your SitecoreDXG middleman to include the Slack completion handler and set its Params.Url property to your new Incoming Webhook URL, as follows:

Note that this completion handler supports the default supported properties, and will display their information in the notification, including:

Create a new Slack App
Enable Incoming Webhooks
Create a new Incoming Webhook
OPTIONS_FILE_PATH
DocumentationConfiguration
completion handler plugin
Helix validation errors
OPTIONS_FILE_PATH
SitecoreDXG Generation Completion Notification Sample