Trigger an Activepieces flow from Lection and route rows to any piece.
Setup Steps
- Create a flow → Trigger: “Webhook” → “Catch Webhook” → copy the live URL.
- In Lection, set the delivery channel to "Activepieces" and paste the URL.
- Run a test scheduled scrape, then load the sample data in the trigger.
- Add a Loop on Items step over dataset.records and map each row into your destination piece.
- Publish the flow.
Mapping Tips
- The request body is available as trigger.body; the rows are trigger.body.dataset.records.
- Use run.status to branch on failed runs.
Payload Highlights
- event: scheduled_scrape.completed, version: 1.
- dataset.records is an array of objects keyed by column name.
Helpful Links
Test Checklist
- Set webhook URL and optional secret in Lection.
- Run a scheduled scrape to capture sample data.
- Confirm
dataset.recordsanddownload.urlarrive in your tool. - Publish/activate the workflow so production runs stay wired.