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
- Create an incoming webhook connector in Teams and copy the URL.
- Set Lection webhook URL to that connector URL (integration: Teams or custom).
- Run a test scrape; Teams shows the summary and download link text.
- 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.
Helpful links
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.