MG Software.
HomeAboutServicesPortfolioBlogCalculator
Contact Us
MG Software
MG Software
MG Software.

MG Software builds custom software, websites and AI solutions that help businesses grow.

© 2026 MG Software B.V. All rights reserved.

NavigationServicesPortfolioAbout UsContactBlogCalculatorCareersTech stackFAQ
ServicesCustom developmentSoftware integrationsSoftware redevelopmentApp developmentIntegrationsSEO & discoverability
Knowledge BaseKnowledge BaseComparisonsExamplesAlternativesTemplatesToolsSolutionsAPI integrations
LocationsHaarlemAmsterdamThe HagueEindhovenBredaAmersfoortAll locations
IndustriesLegalHealthcareE-commerceLogisticsFinanceAll industries
PopularBest code editorsFrontend frameworksVite alternativesWordPress alternativesOpenAI vs Anthropic APIRust vs Node.jsAWS vs Google CloudWhat is technical debt?
MG Software.
HomeAboutServicesPortfolioBlogCalculator
Contact Us
  1. Home
  2. /API connections
  3. /Custom Salesforce API Integration | MG Software B.V.

Custom Salesforce API Integration | MG Software B.V.

Connect Salesforce to your portal, data warehouse or backend. MG Software builds tailored integrations using REST, Bulk and Streaming APIs for leads, opportunities and custom objects.

Salesforce API integration

What is Salesforce?

Salesforce is the world's largest CRM platform, used by organizations of every size to manage customer relationships, sales pipelines and service processes. The platform is exceptionally flexible: alongside standard objects like Leads, Contacts, Accounts and Opportunities, organizations can define their own custom objects with fields, relationships and automation rules tailored to their specific business process.

From an integration standpoint, Salesforce offers a rich set of APIs. The REST API suits point-to-point operations, the Bulk API handles large-scale data loads, the Streaming API enables real-time change data capture, and the Composite API bundles multiple requests into a single call. Platform Events and Change Data Capture further support event-driven architectures.

For businesses that run their own software alongside Salesforce, whether that is a customer portal, an internal tool or a data warehouse, integration is almost unavoidable. Salesforce is rarely the only system. Finance lives in a different package, operations has its own tooling, and marketing uses specialized platforms. Without integration, data islands emerge that must be manually reconciled.

MG Software has experience across various Salesforce editions and configurations. We understand how connected apps work, how OAuth flows with JWT bearer tokens are structured, and which governor limits apply to different API patterns. We translate that knowledge into integrations that are both performant and reliable.

Why integrate?

In many organizations Salesforce serves as the source of truth for customer information but not for operational processes. The sales team works in Salesforce, but the production team uses its own planning tool and finance books entries in an ERP system. When these systems do not communicate, every department maintains its own version of the truth.

A concrete integration changes that. Leads that arrive through your website are created in Salesforce immediately, with deduplication based on email or company name. When an opportunity reaches a certain stage, an order is automatically created in your backend. When an invoice is paid, the status in Salesforce is updated so sales can see the deal is fully closed.

The impact on team efficiency is significant. Customer success managers no longer need to switch between three applications to build a customer picture. Management reports become more trustworthy because they draw from the same underlying data. And for audit and compliance there is a clear trail of which data was synchronized when.

For organizations that use Salesforce as a customization platform, with custom objects and Apex triggers, integration is even more critical. The more complex the Salesforce data model, the greater the chance that other systems contain stale or incomplete data when there is no automated synchronization.

Common use cases

  • Create leads from marketing websites or landing pages directly in Salesforce with deduplication rules on email and domain
  • Synchronize contract data from an internal customer portal into Salesforce custom objects for a complete customer view
  • Automatically generate service tickets in Salesforce Service Cloud based on events from your production environment
  • Export reporting data and KPIs to a data warehouse or BI tool for combined analysis with operational metrics
  • Advance opportunity stages automatically based on billing events such as first payment or contract signature
  • Write product usage data from your SaaS application as custom fields on Account or Contact records for targeted upsell
  • Bidirectionally synchronize contact changes between Salesforce and an external marketing automation platform
  • Translate quotes from Salesforce CPQ into order lines in your backend system
  • Trigger escalation rules when a case in Salesforce has been open longer than the SLA defined in your own monitoring

Technical approach

The technical foundation of a Salesforce integration starts with the connected app. This is the mechanism by which your external application identifies itself to Salesforce and requests API access. We configure connected apps with OAuth 2.0 and preferably the JWT bearer flow, because it requires no user interaction and is suited for server-to-server communication. The private key is stored in a managed secret store, never in code or configuration files.

For choosing the right API pattern we analyze data volume and latency requirements per use case. Individual record operations go through the REST API. When you need to synchronize thousands of records at once, we switch to the Bulk API 2.0 which provides asynchronous processing. For scenarios where your application must react immediately to changes in Salesforce, we use Platform Events or Change Data Capture via the Streaming API.

Governor limits are a critical consideration with Salesforce. Every organization has a daily maximum of API calls, and individual requests are bound by limits on query length, batch size and processing time. We design integrations that respect these limits by batching intelligently, using composite requests where possible, and applying caching for data that does not change frequently.

SOQL, the Salesforce query language, is used for selective data retrieval. Rather than downloading entire tables, we fetch only changed records using LastModifiedDate filters or SystemModstamp. This minimizes data transfer and significantly reduces API call consumption.

Error handling is built in at multiple levels. Network errors trigger retries with exponential backoff. Functional errors, such as a validation rule rejecting a record, are logged with the error message and the relevant record ID so they can be resolved in a targeted manner.

Implementation steps

  1. 1

    Salesforce environment analysis

    We map your Salesforce configuration: which editions, custom objects, field-level security and sharing rules are in play. This forms the basis for the integration design and prevents surprises later in the project.

  2. 2

    Connected app and authentication

    A connected app is created with the appropriate OAuth scopes. We configure JWT bearer authentication for server-to-server communication and verify the token flow against the sandbox environment before building further.

  3. 3

    Data model mapping and transformation

    For each data flow we map fields between your system and Salesforce, including transformation rules for data types, picklist values and relationships. Every mapping is documented in a schema that serves as reference for future extensions.

  4. 4

    API integration development and testing

    Core flows are implemented against a Salesforce sandbox or scratch org. Each flow includes error handling, logging and idempotency. Integration tests validate both happy paths and edge cases with realistic test data.

  5. 5

    Sandbox to production migration

    After sandbox approval we deploy the connected app and configuration to production. A phased rollout with feature flags lets us monitor the impact and roll back quickly if needed.

  6. 6

    Handover and ongoing support

    Your team receives detailed documentation, a runbook for common scenarios and access to monitoring dashboards. We schedule a review after the first month to fine-tune any rough edges.

Security and compliance

Salesforce contains sensitive customer and commercial data. The integration must therefore meet the same security standards that apply to direct CRM access. Field-level security in Salesforce determines which fields are visible and editable per profile. Our integration respects these settings by only querying and writing fields for which the integration user actually has permissions.

Sharing rules and record-level access are observed as well. When your Salesforce organization uses a private sharing model, the integration user only accesses records that have been explicitly shared. We advise on the correct configuration of the integration user to balance security with functionality.

All credentials and tokens are encrypted at rest and in transit. JWT private keys are managed through a secret manager and are never stored in source code. Audit logs record every API interaction so that during a security review it is possible to determine exactly which data was accessed, when and by which system.

Common challenges

The most common challenge in Salesforce integrations is governor limits. Salesforce enforces strict limits on daily API calls, records per bulk job and processing time per request. Integrations that do not account for these can unexpectedly hit a wall, often at the busiest moment.

A second challenge is the complexity of the Salesforce data model, especially in organizations that use many custom objects and lookup relationships. Correctly translating a nested data model into an external system requires careful mapping and often denormalization, merging related objects into a flatter structure that fits your target system better.

The difference between sandbox and production is a third pitfall. Configuration changes that work in sandbox sometimes behave differently in production due to differences in data volume, user permissions or active triggers. We mitigate this with deployment checklists and by always testing with production-representative data.

Maintenance and monitoring

Salesforce releases three major updates per year that can affect API behavior. We monitor Salesforce release previews and test the integration in a preview sandbox before the release rolls out to production. This catches breaking changes before they impact your business process.

We also track daily API consumption through monitoring dashboards. When usage unexpectedly rises or drops, we investigate the cause. This prevents discovering only at month-end that the integration has not been running for days.

Investment and timeline

The scope of a Salesforce integration is determined by the number of objects, the direction of data flows and the complexity of your Salesforce configuration. A first integration with a single object in one direction is typically compact and fits within a few sprints.

For organizations with dozens of custom objects, complex sharing rules or multiple Salesforce orgs, we recommend a phased approach. Each phase delivers a working result that provides immediate value.

An initial scoping session gives you clarity on the expected investment. We work with transparent sprint budgets and clear deliverables per phase.

Further reading

API connectionsExact Online API Integration Services | MG Software B.V.Custom Shopify API Integration | MG Software B.V.API Integration Examples - Practical Integrations for BusinessesPayment Integration Examples - Inspiration & Best Practices

Related articles

Exact Online API Integration Services | MG Software B.V.

Connect your custom software to Exact Online for automated syncing of orders, invoices, stock and ledger data. MG Software builds reliable, production-grade integrations.

Custom Shopify API Integration | MG Software B.V.

Connect Shopify to your ERP, WMS or back office. MG Software builds tailored integrations using the Admin GraphQL API and webhooks for orders, inventory and fulfillment.

Custom Stripe API Integration | Payments, Billing & Connect

Connect your platform or SaaS product to Stripe: process payments, manage subscriptions, handle payouts and monitor fraud through webhooks and the PaymentIntents API.

REST vs GraphQL: Which API Architecture Should You Choose?

REST is simpler, GraphQL is more flexible - but which API architecture matches your data complexity? A comparison from real-world practice.

From our blog

How We Build System Integrations for Our Clients

Jordan · 8 min read

API-First Development Explained

Jordan · 7 min read

Frequently asked questions

Yes. Salesforce consists of multiple clouds, each with their own API sets. We determine per project which APIs are relevant and design the integration so data remains consistent across clouds. The technical approach differs per cloud, but the principle is the same: reliable, secure data transfer.
We combine several strategies. Bulk processing where possible, caching of reference data that rarely changes, composite API to bundle multiple operations, and event-driven updates to avoid unnecessary polling. We also monitor daily API usage and alert when consumption approaches the threshold.
Always. We develop and test all integrations against a Salesforce sandbox or scratch org before touching production. This applies not only to the initial delivery but also to every subsequent change. Sandbox costs are part of your Salesforce license.
Data model complexity is more the rule than the exception in organizations that have used Salesforce for years. We start with an analysis of object relationships, identify which data is actually needed for the integration, and design a mapping that reduces complexity where possible. Not every field needs to be synchronized.
A straightforward unidirectional integration with a standard object can be live within two to three sprints, including sandbox testing and production deployment. More complex scenarios with multiple objects, bidirectional sync or custom business logic naturally require more time. We provide a realistic timeline after the scoping discussion.
Yes. We regularly assess existing integrations that are underperforming or failing to scale with the organization. After a technical review we produce an improvement plan with priorities and a realistic path to a more stable setup.
Yes, with considerations. Platform Encryption restricts certain SOQL operations and filter capabilities. We adjust queries and logic so the integration functions correctly within the encryption constraints of your organization.

Need this integration built?

We design reliable API integrations with monitoring, error handling, and automatic retry logic.

Start a project

Related articles

Exact Online API Integration Services | MG Software B.V.

Connect your custom software to Exact Online for automated syncing of orders, invoices, stock and ledger data. MG Software builds reliable, production-grade integrations.

Custom Shopify API Integration | MG Software B.V.

Connect Shopify to your ERP, WMS or back office. MG Software builds tailored integrations using the Admin GraphQL API and webhooks for orders, inventory and fulfillment.

Custom Stripe API Integration | Payments, Billing & Connect

Connect your platform or SaaS product to Stripe: process payments, manage subscriptions, handle payouts and monitor fraud through webhooks and the PaymentIntents API.

REST vs GraphQL: Which API Architecture Should You Choose?

REST is simpler, GraphQL is more flexible - but which API architecture matches your data complexity? A comparison from real-world practice.

From our blog

How We Build System Integrations for Our Clients

Jordan · 8 min read

API-First Development Explained

Jordan · 7 min read

MG Software
MG Software
MG Software.

MG Software builds custom software, websites and AI solutions that help businesses grow.

© 2026 MG Software B.V. All rights reserved.

NavigationServicesPortfolioAbout UsContactBlogCalculatorCareersTech stackFAQ
ServicesCustom developmentSoftware integrationsSoftware redevelopmentApp developmentIntegrationsSEO & discoverability
Knowledge BaseKnowledge BaseComparisonsExamplesAlternativesTemplatesToolsSolutionsAPI integrations
LocationsHaarlemAmsterdamThe HagueEindhovenBredaAmersfoortAll locations
IndustriesLegalHealthcareE-commerceLogisticsFinanceAll industries
PopularBest code editorsFrontend frameworksVite alternativesWordPress alternativesOpenAI vs Anthropic APIRust vs Node.jsAWS vs Google CloudWhat is technical debt?