Skip to content
FieldworkSystems

Clearer decisions.
Connected service teams.

Integrations & Data

Use Stable Record IDs to Prevent Duplicate Integration Entries

Learn how consistent, unchanging record IDs eliminate duplicate customer, job, and asset entries across connected field service systems, with practical implementation steps and error resolution workflows.

Matching colored identification tokens attached to two separate blank records on an office tabletop
AI-generated editorial illustration.

When you connect two or more field service systems—like a CRM, dispatch platform, and invoicing tool—duplicate entries are one of the most common and disruptive data errors. A duplicate customer record might lead to a tech showing up to the wrong address, a duplicate job can cause double-billing, and a duplicate asset entry can skew maintenance history. The most reliable way to prevent these duplicates is to use stable record IDs: unique, unchanging identifiers assigned to every record when it is first created, that are shared across all connected systems.

A stable record ID is not a customer’s phone number, email, or address, all of which can change over time. It is a value that is never modified after a record is created, even if all other details about the customer, job, or asset are updated. This guide covers how to implement these IDs across your integrations, avoid common pitfalls, and resolve duplicates if they do appear.

Core Properties of a Stable Record ID for Field Service Data

Not all unique identifiers qualify as stable for integration use. To work effectively, an ID must meet four specific criteria:

  • It is assigned once, at the time a record is first created, and never altered for the lifetime of that record
  • It is unique within a documented namespace: source system, tenant or account, record type and immutable source ID. Include that namespace when matching records across different accounts
  • It is stored in a dedicated field in every system that the record syncs to, separate from editable fields like customer name or job address
  • It is never reused, even if a record is deleted or archived

Many off-the-shelf field service tools automatically generate these IDs for new records, but ID generation capabilities are vendor-dependent. You can also define custom IDs if you need to align with existing internal conventions. For example, a custom customer ID might combine a two-letter region code with a sequential number, such as NE-14289, as long as the value is never changed after assignment. Avoid using values that can be modified by staff, like a customer’s last name or a job’s scheduled date, as core IDs, even if they seem unique at creation.

How Stable Record IDs Support Reliable Matching During Syncs

Integrations create duplicates when they cannot match an incoming record to an existing one in the target system. For example, if a sync pulls a customer from your CRM to your dispatch platform, and the customer’s phone number was updated in the CRM since the last sync, a matching rule that relies only on phone number will fail to find the existing record and create a new duplicate entry.

Stable record IDs remove this ambiguity by acting as a single source of truth for matching. When you configure an integration, you set the primary matching rule to check for the presence of the source system’s record ID in a dedicated field in the target system. The intended behavior is to update the matching record or create it once with its source key. A lookup followed by a separate create is still vulnerable to simultaneous requests. Verify an atomic upsert or uniqueness constraint, plus a recoverable mapping and retry policy; stable IDs alone do not enforce those controls. Note that integration matching rule configuration capabilities are vendor-dependent, so confirm your platform supports this logic during setup.

This logic works for both one-way and two-way syncs. For two-way syncs, you will store the ID from each system in the other: for example, your CRM will have a “Dispatch Platform Job ID” field, and your dispatch platform will have a “CRM Job ID” field, so both systems can match incoming updates to existing records regardless of which system the edit was made in, as long as your sync tool supports multi-ID tracking.

Illustrative Example: Stable ID Implementation for a HVAC Service Workflow

This example uses explicitly assumed values to show how stable IDs work in practice for a typical small HVAC business that connects a CRM, dispatch platform, and invoicing tool; all ID formats and numbers are for illustrative purposes only.

  1. A new customer requests a service call through the business’s website, and the CRM creates a new customer record with the assumed stable ID CRM-CUST-8921 and a new lead job record with the assumed stable ID CRM-JOB-11472.
  2. The integration between the CRM and dispatch platform checks the dispatch platform for existing records with the full source key CRM-JOB-11472. No match is found, so it creates a new job in the dispatch platform with assumed ID DISP-JOB-7643, and populates the “CRM Job ID” field in the dispatch record with CRM-JOB-11472. It also creates or matches the customer using CRM-CUST-8921 and retains DISP-CUST-4018 as the target ID. Before enabling reverse updates, the connector saves the CRM/dispatch ID pairs in its durable mapping or writes the supported cross-reference fields back to the CRM. The target customer must be ready before the linked job is finalized.
  3. The office team updates the job’s scheduled date in the dispatch platform. The sync checks the CRM for a record with the full mapped key DISP-JOB-7643, finds the matching lead job, and updates the scheduled date in the CRM without creating a duplicate.
  4. The customer updates their phone number by calling the office, and a staff member edits the customer record in the CRM. The sync checks the dispatch platform for a record with the full source key CRM-CUST-8921, finds the matching customer record, and updates the phone number in the dispatch platform without creating a duplicate, even though the phone number no longer matches the original value from record creation.
  5. After the job is completed, the dispatch platform syncs the completed work details to the invoicing tool. The sync checks the invoicing tool for a record with the full source key DISP-JOB-7643, creates a new invoice with assumed ID INV-22984, and populates the “Dispatch Job ID” field in the invoicing record with DISP-JOB-7643. The test must show that retrying this same invoice-creation operation cannot create another invoice. That requires operation-level idempotency or an enforced unique integration key; a job ID alone may be insufficient if a job legitimately has multiple invoices.

Stable ID Configuration Decision Table

Use this table to decide how to set up ID fields for common field service record types, based on which system is the system of record for that data. Confirm read-only field support and matching rule capabilities with your software vendors before implementation, as these features are not universally available.

Record Type System of Record ID Field to Add to Target Systems Required Sync Matching Rule
Customer CRM CRM Customer ID (read-only, where supported) Match the namespaced source ID; route pre-ID records to a controlled matching review rather than automatically merging by shared email or phone
Scheduled Job Dispatch Platform Dispatch Job ID (read-only, where supported) First match on Dispatch Job ID; reject new entries without this ID for post-implementation jobs, if your platform supports entry rejection rules
Asset / Equipment Field Service Management Tool FSM Asset ID (read-only, where supported) Match the namespaced asset ID; use serial number and model only as reviewed evidence for legacy matching, since immutability does not establish uniqueness
Invoice Accounting Tool Accounting Invoice ID (read-only, where supported) First match on Accounting Invoice ID; no fallback to avoid duplicate billing entries

Marking ID fields as read-only in target systems (where supported by your vendor) prevents staff from accidentally editing or deleting the ID, which would break matching and lead to duplicates on the next sync. For legacy records created before you implemented stable IDs, you can run a one-time matching process to populate the ID fields in all connected systems, so those records are also protected from duplicates. To avoid errors during this process, check key uniqueness, one-to-one mapping and required relationships across the full migration set; manually review ambiguous matches and a representative sample of the remaining mappings. A percentage spot check does not prove every association is correct.

Common Stable ID Pitfalls to Avoid

Even with well-defined IDs, small configuration errors can lead to duplicate entries. Watch for these common issues:

Reusing IDs for deleted records

If your system of record reuses IDs for new records after an old record is deleted, the sync will map the new record to the old deleted record’s entry in target systems, leading to incorrect data association. Test your system’s ID behavior by creating a test record, deleting it, then creating another new record: if the new record has the same ID as the deleted one, check if your system of record supports a “retain deleted record IDs” setting to enable, or introduce a properly persistent integration identity or generation namespace after reviewing the vendor’s identity semantics. An arbitrary deletion timestamp alone does not fix ID reuse. Note that ID retention capabilities are vendor-dependent.

Case sensitivity in ID matching

Some systems treat IDs like “CRM-JOB-11472” and “crm-job-11472” as different values, while others treat them as the same. Test your integration’s matching behavior by creating a test record with an uppercase ID in the source system, then manually entering the lowercase version in the target system. If the integration creates a duplicate instead of updating the existing record, preserve the source’s exact ID value and verify its documented case semantics. Only normalize when that source explicitly defines IDs as case-insensitive; lowercasing an opaque case-sensitive key can merge distinct records.

Missing IDs for manually created records

If staff create records directly in a target system instead of the system of record, those records will not have the source system’s ID, so the sync will not recognize them and may create duplicates when the same record is entered in the system of record later. To prevent this, either restrict record creation to the system of record (if your platform supports role-based creation limits), or add a workflow that automatically sends the new record to the system of record to get a stable ID immediately after creation in the target system, if your tools support automated cross-system ID requests.

Edge Case Handling for Offline and Partial Syncs

Field teams often work in areas with no cell service, so many dispatch platforms allow creating records offline that sync later when connectivity is restored. Stable IDs work for offline records, but offline sync and ID generation behavior is vendor-dependent, so test your platform’s behavior to avoid duplicates:

  • Test if your platform generates a temporary ID for offline records that is replaced with a permanent stable ID when the record syncs to the cloud. If temporary IDs can repeat across devices, keep device/session scope and a durable temporary-to-permanent mapping. Hold downstream creation until a stable identity is available when required, without discarding pending changes or child relationships. Test the documented promotion and retry behavior.
  • Test partial sync failures where some fields of a record sync, but the ID field does not. If this happens, the integration will create a duplicate record on the next sync attempt. Add a validation rule to your target system that rejects new records of synced types if they do not have a valid source system ID, so partial syncs fail entirely instead of creating partial duplicate entries, if your platform supports field validation rules for new records.
  • For integrations that use batch syncs (scheduled to run at set intervals), add a check for duplicate IDs in each batch before processing. Repeated IDs may represent duplicate deliveries or legitimate successive updates. Examine event identity and version before applying a documented ordering or coalescing rule; a repeated record ID alone does not prove that ID generation failed. Batch pre-processing capabilities are vendor-dependent, so confirm your sync tool supports this step.

Duplicate Resolution Workflow If IDs Fail

Even with strong ID controls, duplicates may occasionally appear due to configuration errors or legacy data. Use this short actionable checklist to resolve them without breaking future syncs:

  • Identify which record has the correct stable ID from the system of record, and mark that as the primary record
  • Merge all relevant data (job history, notes, contact details) from the duplicate record into the primary record, following your platform’s supported merge workflows to avoid data loss
  • Add the duplicate record’s ID from any connected systems to a custom “Duplicate ID” field on the primary record, so future syncs that reference the old ID will still match to the primary record, if your sync tool supports secondary ID matching
  • Delete or archive the duplicate record, making sure not to reuse its ID for any future records
  • Review the integration configuration to identify why the duplicate was created (e.g., ID field was edited, matching rule was misconfigured) and correct the issue

Use the platform’s supported merge behavior and preserve an alias or source-to-survivor mapping for every affected immutable ID. Do not try to overwrite a target’s native ID to equal the source ID. Review newer field values and all relationships separately, then ensure old retries resolve to the surviving record rather than recreating the removed duplicate. After resolving duplicates, run a test sync for the affected record type to confirm no new duplicates are created.

Pre-Implementation Test Script for Stable ID Syncs

Before rolling out stable ID syncs to all your data, run this test with 3-5 test records to confirm the configuration works as expected:

  1. Create 3 test records (customers, jobs, or assets) in your system of record, and note their assigned stable IDs
  2. Run the sync once, and confirm that 3 new records are created in the target system, with the stable ID from the source system correctly populated in the dedicated ID field
  3. Edit a non-ID field (e.g., customer phone number, job scheduled date) on each test record in the source system, run the sync again, and confirm that the existing records in the target system are updated, and no new duplicates are created
  4. Edit a non-ID field on each test record in the target system, run the sync again (for two-way syncs), and confirm that the existing records in the source system are updated, and no new duplicates are created
  5. Manually delete the ID field value from one test record in the target system, run the sync again, and confirm that the integration either repopulates the ID field on the existing record, or flags the record for review instead of creating a duplicate

Adjust your sync configuration based on the test results. If duplicates are created during any test step, check that your matching rule prioritizes the stable ID field above all other fields, and that the ID field is not being modified during the sync process. Once tests pass, roll out the configuration to a small subset of live records first, monitoring for duplicates for 1-2 weeks before full deployment.

Further reading

As a product-specific example, Microsoft Dataverse alternate keys use an index whose activation can fail or remain pending. A configured field name alone is not proof that uniqueness is enforced; verify the actual key status in your chosen platform.

Have a question or a correction?

Contact the editorial team