---
schema_version: "1"
id: 9a566696434b5405ca7a5b0bcc08b028bcbae858fda681cc8a54b0c8b66ba18e
title: Create a Slack Rule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/dato_visualize_share_slack_rule.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.dato_visualize_share_slack_rule.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 886d6bf22fd3132208a207851bb19cb184c1242328ea56db285af9f5d8c5e123
description: Create a rule in Slack to trigger alerts based on specific KPIs or by a particular date and time. Use rules to stay updated on the progress of your data.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Create a Slack Rule

Create a rule in Slack to trigger alerts based on specific KPIs or by a particular date and time. Use rules to stay updated on the progress of your data.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="vertical-align:top;" id="d73690e38">REQUIRED USER ROLE</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="REQUIRED USER ROLE" class="slds-cell-wrap" style="vertical-align:top;" headers="d73690e38 ">To share in Slack</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d73690e38 ">Admin and Power User</td>

          </tr>
        </tbody>
      </table>

1. Go to the dashboard page or widget you want to share.
2. Click the Share icon.
3. Click Slack.
4. Click Create Rule, and define the rule.
    
    ![share in slack - create rule](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/salesforce_datorama/images/visualize/dato_viz_share_slack_rule.png)
    
    1. Name your rule (1).
    2. Add the Slack channel you want to notify (2). If you defined the channel in the sharing setting, the channel is automatically populated.
    3. Add a message or information you want to share (3).
    4. You can add queries to your rule to make the data dynamic and interactive (4). When adding a query, make sure that the selected measurements and dimensions are available in your data.
5. Define the trigger for your alert.
    
    ![define the trigger for alter](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/salesforce_datorama/images/visualize/dato_viz_share_slack_trigger.png)
    
    1. Choose whether it’s by time or event (1).
    2. If you’re using by event, select the measurement to apply (2) and the operator (3).
    3. Add a value (4). For example, you want to be notified when your Message Total Clicks drops below 100.
    4. You can add a dimension (5). If you’re creating a rule from a widget that already contains a dimension, it’s automatically populated.
    5. Define how often you want to check if the conditions are true (6).
6. Define filter settings.
    
    In the **Filters** section, you can see all the filters that are applied to your rule and edit them. You can also edit the date range.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)
    
    Note When creating a generic rule that is scheduled to run in the future, it’s recommended to set the date range as a relative date so that the data from the rule is always relevant. For example, last week.
7. Preview the content you are going to send (1).
    
    ![preview content](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/salesforce_datorama/images/visualize/dato_viz_share_slack_preview.png)
8. Click **Create Rule**