A real-time Celigo integration that creates NetSuite purchase orders whenever a Salesforce record changes.
Most CRM-to-ERP integrations run on a schedule: every fifteen minutes, every hour, every night. For many processes that is perfectly fine. But some businesses can’t wait — when a record changes in Salesforce, the purchase order in NetSuite needs to exist now, because someone downstream is waiting to act on it. This project removed the wait entirely.
The challenge
Scheduled syncs leave a gap between a change in Salesforce and the purchase order in NetSuite. When timing matters, the ERP needs to react the moment the CRM record changes.
Scheduled syncs also have a subtler cost: they ask the source system “what changed?” over and over, mostly to hear “nothing”. Making them faster means asking more often, which uses more API calls and still never reaches true real time. The better answer is for Salesforce to say “this changed” at the moment it happens.
How it works
- Real-time Salesforce integration. Built a real-time, event-based Salesforce integration in Celigo.
- Apex trigger. A Salesforce Apex trigger calls the Celigo flow whenever the record is modified.
- Purchase orders in NetSuite. The flow creates the NetSuite Purchase Order from the Salesforce data.
Design decisions
Push, don’t poll
A Salesforce Apex trigger fires when the record is modified and calls the Celigo flow directly. Nothing runs when nothing changes, and when something does change, the purchase order is created straight away. The trade-off between polling and event-driven designs is discussed in Connect Salesforce with Boomi — the principles are the same whichever integration platform you use.
Keep the trigger thin
The trigger’s job is only to tell the integration that a record changed. The mapping, validation and NetSuite logic live in Celigo, where they can be monitored, retried and changed without deploying new Apex code. That separation keeps Salesforce development small and the integration logic in one visible place.
React to the right changes
“Whenever the record is modified” needs care: not every edit should create a purchase order. Deciding which field changes matter — and guarding against creating the same purchase order twice when a record is edited repeatedly — is part of designing any event-driven flow.
Highlights
- Event-driven through an Apex trigger, not polling.
- No delay between the CRM change and the ERP record.
Things that matter in an integration like this
- Plan for the endpoint being unavailable. If the integration can’t be reached for a moment, events need a retry path rather than being lost.
- Make it idempotent. A record edited three times in a minute should still produce one purchase order.
- Respect Salesforce limits. Triggers run inside Salesforce transactions; calls out to the integration should be asynchronous so users aren’t kept waiting.
- Keep a reconciliation. Even real-time integrations benefit from an occasional check that every eligible record reached NetSuite.
The result
Purchase orders appear in NetSuite as soon as the Salesforce record changes.
At a glance
| Built with | Celigo, Salesforce Apex |
|---|---|
| Systems | Salesforce → NetSuite |
| Trigger | Real-time (Apex trigger) |
| NetSuite record | Purchase Orders |
Related reading
- Salesforce CRM consultant — Salesforce integrations with NetSuite and beyond
- Celigo integration consultant — real-time and scheduled Celigo flows
- Cable Bill Payment Automation — a Salesforce-to-NetSuite flow built in Boomi
- Salesforce & NetSuite integration
Need your ERP to react the moment your CRM changes? Let’s talk.



