Skip to main content

Tutorials / Webhook Integrations / Microsoft Teams Webhook

Microsoft Teams Webhook

Send a plain-text Teams webhook message on scrape completion.

Ideal for: Simple Teams channel notifications.

Setup Steps

  1. Create an incoming webhook connector in Teams and copy the URL.
  2. Set Lection webhook URL to that connector URL (integration: Teams or custom).
  3. Run a test scrape; Teams shows the summary and download link text.
  4. Rotate the webhook URL in Teams if you need to revoke access.

Mapping Tips

  • Payload is a simple text body; extend via your own middleware if you need cards.
  • Include download.url text to keep a link to the exported file.

Payload highlights

  • POST JSON: { text: "<summary>\n\nDownload: <downloadUrl>" }.
  • Summary includes schedule.name, run.status, dataset.rowCount.

Test checklist

  • Set webhook URL and optional secret in Lection.
  • Run a scheduled scrape to capture sample data.
  • Confirm dataset.records and download.url arrive in your tool.
  • Publish/activate the workflow so production runs stay wired.