Send Salesforce opportunities for this month to Teams

CRMMarketingRecipe Tools

What it does

When someone runs the opportunities_for_month command in Teams, this automation fetches all opportunities from Salesforce and filters for those created this month. It posts a pie chart to the channel so the team sees the breakdown at a glance.

Who it's for

Sales operations teams who track monthly pipeline and need a quick visual of this month's opportunities.

Apps used

How teams use this

Review monthly pipeline in Teams

Run the command to see this month's opportunities as a pie chart without leaving Teams or opening Salesforce. The team gets instant visibility into the current pipeline.

Track opportunities by stage

Modify the pie chart to include stage as a grouping dimension so opportunities segment by stage instead of just count. This shows which stages have the most deals this month.

Share pipeline with executives

Post the monthly opportunities chart to an executive channel so leadership sees pipeline trends without requesting a report. The same automation runs in a different Teams space.

How it works

  1. Run the opportunities command. Type the opportunities_for_month command in a Teams channel or direct message to request the monthly breakdown.
  2. Fetch all opportunities. Search Salesforce for all opportunities in the system to retrieve the complete list of records for filtering.
  3. Filter for this month. Keep only opportunities where the created date falls within this month's date range so the chart shows current deals.
  4. Build a pie chart. Generate a pie chart from the filtered opportunity data to visualize the distribution of deals this month.
  5. Post the chart to Teams. Reply in the same Teams conversation with the pie chart so the channel sees the monthly opportunity breakdown.