Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
    • Migrate from Git
    • Migrate from Perforce
    • Version Control settings
    • Configure the client
    • Version Control workflow
    • Version Control tools
      • Enable dynamic workspaces (Windows)
      • Create a label
      • Create an attribute
      • Create a mergebot
      • Use Smart Locks
      • Use Xlinks
      • Use Unity Samples
      • Use triggers
        • Create your first trigger
        • Trigger checkin samples
        • Verify label creation
        • Update files before checkout
        • Example triggers
        • Create a Slack web trigger
        • Create a Discord web trigger
      • Transfer project to a different organization
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Create a Slack web trigger

Set up Slack webtriggers for notifications in Unity Version Control.
Read time 2 minutes
Last updated 10 months ago

You can create a web trigger to connect Unity Version Control with Slack to receive notifications. The notification includes the information available to the specific trigger that you use.

Configure Slack

To configure Slack, you first need to make a Slack application with the correct scopes:
  1. In the Apps section, select Add apps > App Directory.
  2. In the browser that opens, select Build > Your Apps.
  3. Select Create an App > From scratch.
  4. Add the name of your app, select the workspace you want to use, and select Create App.
  5. Select Bots to add bot functionality and then select Review scopes to add.
  6. Add the following scopes:
    • channels:read
    • chat:write
    • groups:read
    • im:read
    • mpim:read
    • users:read
  7. Select Install to Workspace or Request to Install, dependent on your workspace permissions, and make a note of the Bot User OAuth Token that generates.
Once you install your app to your workspace, you can set it up and get the information you need in your Slack application:
  1. In the Apps section, select Add apps > App Directory, search for your app and select it.
  2. Right-click on the app and select View app details.
  3. Select Add this app to a channel and select the channel you want to use from the dropdown.

Make the web trigger

To create the Slack web trigger, you need the Bot User OAuth Token from when you install your app into Slack, and the channel name of the channel you added the app to.
You need to use the
webtrigger-slack
string (instead of
webtrigger
) before the script path, followed by the Slack channel:
webtrigger-slack https://slack.com/api/chat.postMessage/${channelOrUserId}/${slackBotToken}

Example Slack web triggers

The trigger below causes the server to post a message to Slack after every check in made in the server
myPlasticServer
. The message includes details such as the check in comment, the check in author, and the specification of the changeset the operation created.
  • cm trigger make after-checkin MySlackAfterCheckinTrigger "webtrigger-slack https://slack.com/api/chat.postMessage/<channelId or UserId>/xoxb-SlackBotToken" --server=myPlasticServer
  • cm trigger edit after-checkin 3 "webtrigger-slack https://slack.com/api/chat.postMessage/<channelId or UserId>/xoxb-SlackBotToken"

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Configure Slack

    • Make the web trigger

      • Example Slack web triggers


Report a problem with this page