Salesforce to ERPNext migration: object mapping, automation rebuild and a phased cutover

Short answer

Moving from Salesforce to ERPNext means three jobs: moving the data, rebuilding the logic and re-pointing the integrations. Accounts become ERPNext Customers or Frappe CRM Organizations, Opportunities become Opportunities or Deals, Cases become Issues or Frappe Helpdesk tickets, and custom objects become custom DocTypes in a Frappe app you own. Data loads in dependency order through ERPNext’s Data Import tool or the REST API, keeping every Salesforce ID so relationships can be rebuilt and checked. Flows, validation rules and Apex cannot be exported and are rewritten as Frappe configuration and Python. Many CRM-to-ERP integrations simply disappear because both live in one database. Run it in six phases, with at least two trial loads and a parallel run, and finish before your Salesforce renewal notice date.

Planning this move? Get a free 30-minute scoping call.

Who this guide is for

This guide is for IT leads, Salesforce admins and operations managers at companies of roughly 10 to 500 users who have decided, or nearly decided, to move from Salesforce to ERPNext, Frappe CRM or both. It explains which target to pick, how each Salesforce object and automation maps across, and how we run the move in phases. It is based on Salesforce’s and Frappe’s own documentation; where something depends on your org, we say so rather than guess.

If you are still deciding whether to leave, start with the 70 reasons companies leave Salesforce. If you want us to run it, see Salesforce migration services.

ERPNext, Frappe CRM, or both?

OptionWhat it isPick it when
ERPNext CRM moduleLead, Opportunity, Customer, Quotation and Sales Order inside a full ERP (GPL-3.0)Sales hands straight into quoting, orders, stock and invoicing, and you want one system
Frappe CRMA separate modern sales CRM (AGPL-3.0) with lead capture, deals, email, calls and WhatsAppSales teams want a focused CRM; you may or may not run ERPNext yet
Frappe CRM + ERPNextFrappe CRM for the pipeline, linked to ERPNext so a deal creates the customer and quotationYou want the best sales UI and one source of truth for orders and finance
Frappe Helpdesk (with either)Open-source ticketing (AGPL-3.0)You run Service Cloud cases today

Sources: ERPNext docs: CRM, Frappe CRM product page, Frappe CRM docs: ERPNext integration, Frappe CRM on GitHub (AGPL-3.0) and Frappe Helpdesk on GitHub (AGPL-3.0). All run on the Frappe Framework (MIT), which exposes every record type through a REST API (Frappe Framework docs: REST API).

Get a migration readiness checklist

Tell us where to send it and we'll email you a Salesforce exit checklist tailored to your org. A member of our ERP team sends it personally.

Object mapping: Salesforce to ERPNext and Frappe CRM

SalesforceERPNextFrappe CRMNotes
AccountCustomer (and Prospect)CRM OrganizationKeep the Salesforce Account ID in a custom field on every record
ContactContact, linked to CustomerCRM ContactContacts link to several parties in ERPNext through dynamic links
LeadLeadCRM LeadMap lead status values one by one; do not import converted leads as open
OpportunityOpportunityCRM DealRecreate stages and probabilities before loading
Product, Price BookItem, Price List, Item PriceProducts on the dealItems carry stock, tax and accounting settings Salesforce never had
Quote, OrderQuotation, Sales OrderQuotation created in ERPNextUsually migrate open documents only; archive the rest
CaseIssue (Support module)Frappe Helpdesk ticketEmail-to-case becomes an incoming email account
CampaignCampaignLead source / campaign fieldsMarketing history often stays in an archive
Task, EventToDo, EventTasks, notesLoad open tasks; summarise closed activity
EmailMessageCommunicationEmail timelineLarge volume; decide a cut-off date
Files, AttachmentsFile, attached to the recordFile, attached to the recordLoad after parent records exist
User, Profile, Permission SetUser, Role, Role Profile, User PermissionUser and rolesPermissions are redesigned, not copied
Custom objectCustom DocTypeCustom DocTypeBuilt in a Frappe app under version control

Load in dependency order: users, items and price lists, organisations or customers, contacts, leads, deals or opportunities, quotes and orders, cases, then activities and files. ERPNext’s Data Import tool loads CSV or Excel one record type at a time and can insert or update (ERPNext docs: Data Import). For large volumes we load through the REST API from scripts so loads are repeatable.

Fields, picklists and relationships

Salesforce field typeFrappe equivalent
Text, number, currency, dateData, Int / Float, Currency, Date
PicklistSelect field (or a Link to a small DocType if values need attributes)
Multi-select picklistTable MultiSelect or a child table
LookupLink field
Master-detailChild table (if the child has no life of its own) or Link with deletion rules
FormulaFetch-from field, or a value computed in a server-side hook
Roll-up summaryComputed on save of the child, or a report
Record typeSeparate DocType, or a Select field driving form behaviour

Salesforce stores relationships as 15- or 18-character record IDs. We keep the original ID on each migrated record and resolve every Link field through an old-ID-to-new-name map, so nothing is matched by name alone.

Rebuilding automation and code

SalesforceFrappe / ERPNextHow it moves
Validation rulesValidation in a server-side hook or Server ScriptRewritten and tested
Record-triggered flowsDocument event hooks, Server Scripts, Notifications, Assignment RulesRewritten; many become simple configuration
Scheduled flows and scheduled ApexScheduled jobs in a Frappe appRewritten
Approval processesWorkflow (states, transitions, roles)Rebuilt as configuration
Apex triggers and classesPython in a custom Frappe app, with whitelisted API methodsRewritten; no export path exists
Lightning components and VisualforceClient scripts, custom pages or a Vue front endRedesigned
Reports and dashboardsReport Builder, query and script reports, dashboardsRebuilt from a prioritised list

Apex only runs on Salesforce, so code is always rewritten (Apex Developer Guide: What is Apex?). The upside is that the result is ordinary Python and JavaScript in your own Git repository. Since Salesforce ended support for Workflow Rules and Process Builder on Dec 31, 2025 (Salesforce Help: Workflow Rules and Process Builder end of support), many orgs face an automation rebuild either way.

Integrations

List every system that reads from or writes to Salesforce, how often and in which direction. Then sort them into three groups:

  • Disappear: CRM-to-ERP syncs for customers, quotes, orders and invoices, when ERPNext becomes the system for both.
  • Reconnect: email, calendar, telephony, forms and marketing tools that have Frappe integrations or can call the REST API.
  • Rebuild: custom integrations, re-pointed to the Frappe REST API with token authentication.

Retire the Salesforce side only after the new integration has run in parallel. Our Salesforce API limits guide explains why the first group often pays for much of the project.

Migration phases

PhaseWhat happensOutput
1. DiscoverInventory objects, record counts, storage, automation, Apex, integrations, reports and users; read contract datesScope, risks and a dated plan
2. DesignChoose ERPNext, Frappe CRM or both; design DocTypes, roles and processes; agree what history to migrate and what to archiveMapping workbook signed off by owners
3. BuildConfigure, build the custom Frappe app, rebuild automation and integrations, set up hostingA working system in a test site
4. Trial loadsFull export, transform and load at least twice; reconcile counts, totals and sample recordsReconciliation reports
5. Parallel run and cutoverUsers work in the new system; freeze Salesforce writes, load the final delta, switch integrationsGo-live with a rollback point
6. HypercareFix issues, train, and keep a verified Salesforce export archivedStable system and a closed Salesforce org

How long this takes depends on data volume, the number of custom objects, the amount of Apex and the integrations. We give a dated plan after discovery rather than a generic estimate. Finish before your renewal notice date; see Salesforce renewal terms.

Risks and how to handle them

RiskHow we handle it
Missing data or broken relationshipsKeep Salesforce IDs, reconcile counts and totals per object after every load
Users rejecting the new systemInvolve sales and operations in design, run a pilot team, train during build
Logic nobody documentedRead every flow, rule and trigger in discovery; agree with owners what to keep
Running out of time before renewalWork back from the notice date; keep a fallback of renewing a smaller scope
Files and history volumeAgree a cut-off; archive the rest in a searchable store
Hosting and upgrades with no ownerAgree who owns hosting, backups and upgrades: you, Frappe Cloud or a partner

Planning a move off Salesforce? See our Salesforce migration services for how we move teams to ERPNext and Frappe CRM with code ownership, or read the 70 reasons companies leave Salesforce.

Frequently asked questions

Can ERPNext replace Salesforce?

For many small and mid-sized companies, yes, especially those that also need quoting, orders, stock and accounting. Very large sales organisations that depend on Salesforce’s AppExchange depth or advanced revenue tools should test carefully first.

Should I use ERPNext CRM or Frappe CRM?

Use the ERPNext CRM module if sales hands straight into ERP processes and you want one system. Use Frappe CRM if sales wants a focused, modern CRM; it links to ERPNext to create customers and quotations from deals.

Can I export Apex code and flows to ERPNext?

No. Apex and flows only run on Salesforce. They are rewritten as Frappe configuration, server-side hooks and Python in a custom app.

How do I keep relationships between records?

Keep each record’s Salesforce ID in a custom field and resolve every lookup through an old-ID-to-new-record map during loading. Reconcile counts and totals after each load.

How long does a Salesforce to ERPNext migration take?

It depends on data volume, custom objects, Apex and integrations. We give a dated plan after a discovery of your org rather than a generic estimate.

Do we lose our data history?

Not if you plan it. Migrate open and recent records, and archive the full Salesforce export in a searchable store before the subscription ends.

Ready to plan the move?

We start with a discovery of your Salesforce org and contract dates, then give you a mapping workbook, a dated plan and a fixed scope for moving to ERPNext or Frappe CRM.

We'll get back to you shortly. We use your details only to reply to this request.