Route closed lost opportunities in Teams and Salesforce

CRMMarketing

What it does

When someone runs the select opportunity to closed lost command in Teams, this automation searches Salesforce for all open opportunities. It posts a picklist so someone can pick one to mark closed lost.

Who it's for

Sales teams who need to update opportunity status to closed lost from Teams without opening Salesforce.

How teams use this

Mark a lost deal from Teams

Run the command and pick an opportunity from the list to close it as lost without leaving Teams. The status updates in Salesforce right away.

Let sales ops close deals

Invite the bot to a sales operations channel so the team can update opportunity status from their workflow. The picklist and process stay the same.

Filter opportunities by stage

Add a condition to show only opportunities in a specific stage before posting the picklist. This narrows the list so someone picks faster.

How it works

  1. Run the closed lost command. Type the select opportunity to closed lost command in Teams to start the process of marking an opportunity as closed lost.
  2. Find all open opportunities. Search Salesforce for all open opportunities so someone can pick one from the list to update to closed lost status.
  3. Get the opportunity owner details. Retrieve info about each opportunity owner using the Owner ID so the picklist shows who owns each deal in Salesforce.
  4. Post the opportunity picklist. Reply in Teams with a picklist of open opportunities so someone can select one to mark as closed lost in Salesforce.