Notify Slack when a Salesforce opportunity closes

CRMMarketingCollaboration

What it does

When someone closes an opportunity as Won in Salesforce, this automation posts a message to Slack with the opportunity owner, account owner, and account solutions architect. The message appears only once per opportunity.

Who it's for

Sales operations teams who want their Slack channel notified instantly when deals close without manual updates.

How teams use this

Alert the team when deals close

Post a Closed Won notification to Slack with all key stakeholders so the team sees wins in real time without checking Salesforce.

Route notifications to different channels

Send closed opportunities to a leadership channel instead of the sales channel so executives track pipeline closure separately.

Include deal amount and close date

Add the opportunity amount and close date fields to the Slack message so the channel sees the full deal value and timing.

How it works

  1. Monitor for closed opportunities. Salesforce detects when an opportunity stage changes to Closed Won and the Processed Flag is not yet set to true.
  2. Look up the opportunity owner. Search Salesforce users by the opportunity owner ID to retrieve the owner's name for the Slack message.
  3. Look up the account owner. Search Salesforce users by the account owner ID to include the account owner's name in the notification.
  4. Look up the solutions architect. Search Salesforce users by the account solutions architect ID to add that person's name to the message.
  5. Post the deal notification. Send a message to the Slack channel with the opportunity details, owner name, account owner name, and solutions architect name.