Perfex CRM Make.com Integration: Webhooks to Scenarios
A Perfex CRM Make.com integration built on instant webhooks, routers and batch calls - and a rule for which side owns retries so nothing gets created twice.
A Make.com scenario that polls Perfex for new leads every fifteen minutes runs 2,880 times a month. Almost all of those runs find nothing, and each still spends an operation - on a plan sized at 10,000 operations, roughly a third of the month gone on a question whose answer is usually “no”. The lead also arrives up to fifteen minutes late, which is what costs money when the same person is filling in three forms on three sites. A Perfex CRM Make.com integration built the other way round, with the CRM pushing the event the instant it happens, costs one operation per event and lands in under a second.
We build and sell the REST API module for Perfex CRM and the Webhooks module for Perfex CRM, so weigh the recommendations accordingly. Most of what follows is about what happens after the first bundle arrives.
This article covers Perfex CRM Classic. Perfex CRM Next is a separate product, not an upgrade - here is which modules Next replaced outright.
Why a Perfex CRM Make.com integration starts with a webhook
Make’s scheduling model makes polling feel free. It is not. The operation counter moves whether or not there was anything to fetch, and latency is bounded by the interval no matter how fast your server responds.
The push side is well supplied. Webhooks 2.0 in the REST API module carries a catalog of 124 events across 22 resource groups, bridged to 75 core Perfex actions, so a record created by a staff member in the admin panel and the same record created through the API both fire. The standalone Webhooks module covers fourteen core areas, from leads and customers through invoices including recurring, tasks, projects, estimates, proposals, tickets, payments, contracts and calendar events, and version 2.0 added the lifecycle events automations actually want: estimate accepted, declined and converted to invoice; proposal converted to estimate or invoice; lead converted to customer, marked lost or junk; invoice status changed, cancelled, sent and copied.
Point one of those at a Make custom webhook URL and the Perfex CRM Make webhook trigger is done. Keep polling for exactly two jobs: catching up on what happened while the scenario was switched off, and resources where no event exists for the change you care about. The module ships dedicated polling and test endpoints with timestamp filtering, plus a resource-discovery endpoint, so a catch-up scenario needs no hand-built cursor logic.
One limitation to plan around: in the standalone module, Update is not supported on Tasks. Use the 2.0 task lifecycle events instead - status changed, timer started, comment added, checklist item created - which are the changes worth reacting to anyway.
Installing the Perfex Make.com connector
Worth knowing before you go looking: this is not a search-the-app-directory job. The module includes a standalone manifest generator that produces the connector manifest for each supported platform - Zapier, Make.com and n8n - with download links and setup instructions. Generate the Make manifest, import it through Make’s custom app tooling, supply an API key, and the polling and test endpoints give the triggers the shape they expect rather than a generic HTTP module you have to document yourself.
Issue the key for this scenario alone. Permissions are granted per resource as Get, Create, Update and Delete, and each key can carry a request limit, a usage quota and an expiry date. A scenario that reads invoices and writes nothing should hold a token with Get on invoices and nothing else, because on the day it misbehaves you want per-API-key statistics naming the caller - not one shared key reporting only that the CRM is busy. Where you fall back to a raw HTTP module, GET /api/openapi returns the OpenAPI 3.0 specification - 74 paths, 144 operations, 498 typed fields - so you read field names rather than guess them.
Verify the signature before the scenario trusts the bundle
A Make custom webhook URL is a public HTTPS endpoint. Anyone who learns it can post to it, and by default your scenario will believe them.
Every Webhooks 2.0 delivery is HMAC-signed with a timestamp in X-Perfex-Signature, which gives you authenticity and replay protection together, and deliveries are guarded by SSRF filtering and TLS verification with an optional strict mode that blocks private-LAN targets. Make can check that inside the scenario: its sha256() function accepts an optional key argument, so you recompute the HMAC over the payload, compare it to the header, and put a filter immediately after the trigger that drops anything failing the comparison.
If that is more scenario than you want to maintain, the fallback is a shared secret in a custom header. The standalone module supports 32 standard request headers plus any custom header you define, so a header your scenario filters on costs nothing to add. It is weaker - no timestamp binding, and a leaked URL and header leak together - but it beats an open endpoint.
Routers, iterators and the fan-out Make is actually good at
This is where a Make.com Perfex CRM scenario stops resembling a Zap. Zapier rewards many small linear automations; Make rewards one scenario with a router, because the trigger is billed once however many branches consume it.
- Fan out from one event. An invoice-paid webhook enters once, then a router splits it: one branch posts to accounting, one to a team channel, one updates the related project. Three outcomes, one trigger operation.
- Iterate the line items. Invoices, estimates and proposals return an
itemsarray, and POST and PUT accept the same shape GET returns, so an iterator maps cleanly in both directions (the legacynewitemsformat still works). - Shrink the bundle before it enters. Every list endpoint shares one toolkit: pagination, sorting (
?sort=-datecreated), field selection (?fields=id,company) andcreated_after/created_beforeranges. A catch-up run pulling three fields instead of forty is faster to parse and cheaper to keep in Make’s execution history. - Do not rebuild arithmetic in formulas. Totals for invoices, estimates, proposals and credit notes are computed server-side from line items, taxes, discounts and adjustments. A Make formula that re-derives them will disagree with the CRM eventually, and the CRM will be right.
Decide which side owns retries
Both engines retry. That is the whole problem. Perfex retries the delivery, Make retries the bundle, and if nobody has decided who is responsible for what, one transient timeout produces the same customer record three times.
| Concern | Owned by | Mechanism |
|---|---|---|
| Getting the event out of Perfex | Perfex | async queue claims each job atomically, retries with exponential backoff |
| Acknowledging the delivery | Make | webhook responds 2xx immediately, work happens after |
| Retrying a write back into Perfex | Make | scenario error handler and a stable Idempotency-Key |
| Making that retry harmless | Perfex | an identical POST replays the stored response for 24 hours |
| Writing many records at once | Perfex | batch operations, up to 50 per request, continue-on-error |
Four rules fall out of that table.
- Return 2xx fast. The webhook response acknowledges receipt, not completion. Anything slow belongs after the acknowledgement, or the backoff re-delivers an event Make is still processing.
- Give every retryable POST an
Idempotency-Keyderived from the data. A key built from something stable - the source record ID plus the event name - replays the stored response instead of re-executing, within a 24-hour window. A fresh UUID per attempt defeats the mechanism entirely, and that is the most common way this goes wrong. - Store the
record_id. Every create response returns the ID of the record it just made. Keeping it is what lets a later run update rather than insert. - Batch instead of iterating. Fifty records through an iterator is fifty module executions and fifty round trips, and a failure halfway leaves the CRM half written. One batch request is one operation with per-operation results and continue-on-error, so you see which three of the fifty failed.
Read the X-RateLimit headers on every response rather than inserting a sleep module and hoping. A guessed delay is either too slow every day or too fast on the day it matters.
Delays: pick one clock
Both sides can wait, so choose deliberately. The standalone module can hold a webhook and send it minutes, hours or days after the event, which suits follow-ups, though it needs a custom cron job configured. Make can sleep or schedule too. Our rule: if the delay is business logic someone will want to change, put it in Make where it is visible. If it is delivery smoothing, leave it in Perfex. Never both.
Cron deserves its own flag. Async webhook delivery runs off cron, with an admin-load fallback for installs without one. On a low-traffic install a dead crontab looks exactly like a broken scenario from the Make side, so read the delivery log first.
Rebuilding an Integromat-era Perfex CRM scenario
Scenarios inherited from the Integromat days are usually a stack of generic HTTP modules with hand-written compensation wrapped around them. Most of that compensation can now be deleted:
- Manual pagination loops, replaced by the unified list toolkit.
- Client-side total calculations, replaced by server-side totals.
- Full-object PUTs assembled to avoid wiping fields, replaced by tolerant partial updates on 13 resources, where unknown payload fields are ignored instead of causing an error.
- Fixed sleeps, replaced by the rate-limit headers.
Keep the delivery logs and the test tooling. Both modules record deliveries; the standalone one filters that log, fires a test webhook to confirm a destination responds before you rely on it, and clones a webhook so the next one takes seconds.
The order to build one in
- Create a token scoped to this scenario alone - the exact verbs it needs, an expiry date, a quota.
- Build the Make scenario with a custom webhook trigger and nothing after it, then fire a test webhook from Perfex and confirm the bundle structure.
- Add the signature check and its filter before any module that writes anywhere.
- Add the router branches, and only then the modules that write back, each carrying a data-derived
Idempotency-Key. - Add one catch-up scenario against the polling endpoint with a
created_aftercursor, scheduled hourly, for the days the queue does not run. - Break it on purpose - point one branch at a dead URL - and note what the delivery log shows against what Make’s incomplete executions show. Those five minutes tell you which side is lying when it happens for real at 2am.