Problem Statement
At Astrea IT Services, our compact yet capable team of developers oversees multiple Salesforce applications listed on AppExchange. Managing several apps simultaneously makes it difficult to manually track each one for client-reported issues. This becomes especially critical when High Priority Cases are raised — any delay in response can lead to customer dissatisfaction or potential business loss.
Objective
Automatically send a message to a designated Slack channel whenever a High Priority Case is created in Salesforce — all achieved using OmniStudio’s Integration Procedures without writing any Apex code.
Key Goals:
- Immediate alerting for faster response to critical issues
- Elimination of manual monitoring for urgent cases
- Seamless communication via Slack, where the support team is already active
Why Is This Important for Astrea IT Services?
Tools & Technologies Used
- Slack Webhook Integration
- Salesforce Named Credential
- OmniStudio Integration Procedures
- OmniScript (for manual testing or inputs)
- HTTP Action with conditional logic
Implementation Steps
1. Slack Setup
- Created a new Slack App
- Enabled Incoming Webhooks
- Added the webhook to a dedicated Slack channel (e.g., #case-alerts)
- Generated the Webhook URL for external integrations
2. Salesforce Named Credential
- Created a Named Credential: SlackWebhook
- Set the endpoint:
https://hooks.slack.com/services/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 -
Authentication Type: None (as it’s a public webhook URL)
3. OmniStudio Integration Procedure
- Procedure Name: Slack_Case_Alert_IP
- Inputs: Case Subject, Case Number, Priority, Contact Name, and Description
- Used a Conditional Block to check if Priority is 'High'
- Constructed a JSON body for Slack message
-
Used HTTP Action to post data to Slack via the Named Credential
4. OmniScript UI
- Built a form to enter Case details manually
- Linked the Integration Procedure
-
Can be used for testing, training, or operational input
When I create a new Case through the OmniScript and the Case Priority is set to High, a message is automatically sent to Slack.
5. Trigger for Integration
The starting trigger is the creation of a new Case record in Salesforce with the Priority set to 'High'. This initiates the Integration Procedure that sends an alert to Slack.
Example Slack Message Sent
High-Priority Case Alert!
Subject: Portal Not Loading
Case Number: 000234
Customer: Shainki
Description: User is not able to log in after password reset.
Outcomes
- Support team receives Slack alerts in real time
- No Apex or third-party middleware is required
- Simple to configure, test, and extend
- Enhances response time and internal efficiency
Future Enhancements
- Add Slack buttons for in-message actions like "Assign", "Acknowledge", or "Close"
- Include Slack user mentions for escalation
- Implement Slack-to-Salesforce updates for two-way communication
Final Thought
By integrating Salesforce with Slack using OmniStudio’s low-code capabilities, Astrea IT Services has delivered a real-time alerting solution that is scalable, automated, and Apex-free. This smart integration not only ensures high-priority issues are never missed but also demonstrates how a small team can manage numerous apps efficiently and professionally.
Got questions? Feel free to drop an email to support@astreait.com