Define a Groovy Trigger to Send Notifications to Slack

Before writing the groovy scripts, ensure that you complete these steps:

  • Create a Slack Channel. For more information, see "Create a Slack Channel in Your Fusion Application".

  • Enable notifications for service requests. For more information, see "Enable Notifications for Service Requests".

To define a groovy trigger to send notifications to Slack:

  1. Sign in to the application as an administrator.

  2. Ensure that you're in a sandbox.

  3. Navigate to Application Composer.

  4. In the Application field, select CRM Cloud from the drop-down list.

  5. In the Object Tags region, select the Service check box.

    Note: If you're writing a groovy trigger on a Sales object, select the Sales check box.
  6. Expand the Service Request object.

  7. Click Server Scripts.

  8. Select the Triggers tab.

  9. Create an object trigger for Service Request Server Scripts.

  10. Define your groovy trigger as described in "Examples of Groovy Scripts for Sending Notifications to Slack".