Notify Slack when Salesforce opportunity closes won

CRMMarketingCollaboration

What it does

When an opportunity in Salesforce reaches Closed Won stage, this automation posts a message to Slack. The message includes the opportunity owner, account owner, and solutions engineer, then marks the opportunity as processed.

Who it's for

Sales operations teams who need to alert the channel when deals close and track which opportunities have been communicated.

How teams use this

Alert the sales channel on closed deals

Post opportunity details to Slack when the stage changes to Closed Won so the team celebrates wins and tracks closed business without checking Salesforce.

Route notifications to deal-specific channels

Send the Closed Won message to different Slack channels based on the opportunity owner or account segment so each team only sees relevant deals.

Include custom opportunity fields in the post

Add contract value, close date, or product line to the Slack message so the channel has full context without opening Salesforce.

Prevent duplicate notifications with the flag

The Processed Flag ensures each closed won opportunity posts only once, even if the record is updated again after the message goes out.

How it works

  1. Monitor opportunities reaching Closed Won. When an opportunity in Salesforce is created or updated and its Stage field equals Closed Won, this automation runs for each matching opportunity.
  2. Retrieve opportunity owner and account details. Search Salesforce for the opportunity owner name, account owner name, and solutions engineer name using their stored user IDs so the Slack message includes the right people.
  3. Post the closed deal to Slack. Post a message in Slack with the opportunity details, owner names, and solutions engineer so the channel sees the closed won deal right away.
  4. Mark opportunity as processed. Update the opportunity in Salesforce and set the Processed Flag to true so this deal is not posted to Slack again.