.png)
LeanData Integration Guide
Integrate LeanData through its routing APIs and Salesforce REST or Bulk APIs to match Leads and Contacts, assign ownership, and distribute revenue orchestration outcomes.
LeanData integration options at a glance
LeanData integrations are primarily API-led and Salesforce-centric. Documented LeanData routing scenarios can be accessed through REST APIs, while Salesforce REST APIs provide access to Leads, Contacts, Accounts, Opportunities, Campaign Members, and related objects processed by LeanData. Salesforce Bulk API can support high-volume operations when appropriate, although LeanData-specific bulk behavior requires confirmation. Salesforce events, outbound messaging, or other callback mechanisms may provide selected notifications, but LeanData-specific webhook coverage is not confirmed. Martini can securely consume these APIs, expose an API for routing requests, transform payloads, apply matching rules, and orchestrate retries and reconciliation workflows.
Common LeanData integration patterns
Common LeanData data objects used in integrations
Authentication and security considerations
Salesforce authentication
LeanData is commonly deployed as a Salesforce-native application. Access to LeanData-managed data therefore follows Salesforce OAuth 2.0, access and refresh tokens, profiles, permission sets, object-level permissions, field-level security, and API permissions.
Credential protection
Store Salesforce tokens, LeanData API credentials, client secrets, tenant URLs, and endpoint configuration in protected Martini secrets or environment-specific configuration rather than embedding them in workflows.
Least-privilege access
- Grant only the objects, fields, records, and API operations required by the workflow.
- Review access to Lead, Contact, Account, and Opportunity data.
- Use separate credentials and endpoints for development, testing, and production.
- Avoid logging personal or commercially sensitive fields unnecessarily.
Operational considerations for LeanData integrations
Limits and throughput
Salesforce API limits apply to Salesforce access, and LeanData-specific quotas or routing limits should be confirmed with the customer subscription and documentation. Use controlled concurrency, backoff, and Bulk API evaluation for high-volume workloads.
Pagination and incremental processing
Continue through paginated Salesforce responses and persist cursors, offsets, or last-successful timestamps where supported. Define how updates, deletes, merges, ownership changes, and converted Leads are detected.
Matching and idempotency
Normalize email domains, company names, phone numbers, and country codes before routing. Use Salesforce IDs, external IDs, or deterministic request keys to prevent duplicate routing requests and downstream updates.
Schema and failure handling
- Monitor Salesforce custom-field and LeanData routing-configuration changes.
- Handle invalid data, no-match and multiple-match results, inactive owners, validation failures, expired tokens, and rate limits.
- Separate partial batch failures from successful rows and reconcile them from stored checkpoints.
- Test against Salesforce automation, validation rules, field-level security, and representative routing configurations.
Why use Martini instead of scripts or point-to-point integrations?
Centralized orchestration
Martini coordinates LeanData, Salesforce, marketing, sales engagement, and service systems in workflows rather than scattering routing logic across scripts and point-to-point connections.
Reusable integration assets
Teams can expose controlled APIs, consume documented REST endpoints, reuse mappings and validation logic, and apply consistent authentication, error handling, retries, and observability.
Adaptable business rules
Martini can normalize matching data, apply fallback and eligibility rules, preserve idempotency state, and accommodate Salesforce custom fields or tenant-specific routing behavior without changing every downstream integration.
Operational maintainability
Workflow-based checkpoints, logs, environment-specific secrets, batch reconciliation, and explicit mappings make the integration easier to monitor, test, troubleshoot, and evolve than isolated scripts.