Key points
- Map the actual source and destination schemas.
- Define omission, null and clearing as separate decisions.
- Resolve identity and field ownership before applying updates.
Contact-data field mapping is a controlled transformation from a source response into the values your CRM is allowed to store. Define field types, ownership and missing-value behavior before automating updates.
Do not assume every enrichment provider returns one standard schema. Inspect the operation you use and keep a mapping version with the job so an unexpected value can be traced back to its source and transformation.
Inventory the real source and destination fields
For Dievio public search, contact records are returned in preview_data. Available fields can include name, title, company, location, profile URL and contact details, with missing or null values depending on the record.
Inspect actual responses and the current contract. Do not invent a provider confidence score, field-verification timestamp or generic nested company object merely because another API offers one.
On the destination side, retrieve the target account's field definitions. Display labels, API names, field types and enumeration values are different pieces of metadata.
Write a mapping contract
| Source observation | Internal handling | Destination rule to define |
|---|---|---|
| Name and role text | Preserve raw text; normalize only under a documented rule | Which fields may be filled or changed? |
| Company name and domain | Keep account evidence and matching outcome separate | Which company is associated with the contact? |
| Available email or phone | Retain value, source and relevant review state | Does this update a field without activating outreach? |
| Industry or size classification | Map to the accepted destination vocabulary | What happens to unmapped values? |
| Missing or null value | Record the absence without guessing | Leave unchanged, hold for review or explicitly clear? |
The rule should include the source field, transformation, destination field, allowed type and the owner of exceptions. A reviewed manual value may deserve protection even when a new source observation arrives later.
Distinguish absence from clearing a value
An omitted field, a null and an empty string can have different meanings. Define how each source state becomes an internal decision before constructing the destination request.
Do not send an empty value merely to represent “we did not receive this field” when the destination interprets it as a clearing instruction. Likewise, do not leave stale data untouched when the approved action is an explicit correction.
Resolve identity before applying field changes
Document which identifiers can match a contact or company and what to do when they disagree. An email may change or be shared; a name-and-company resemblance may be ambiguous.
Keep candidate matches, confirmed matches and duplicate decisions distinct. Do not merge records or overwrite a trusted company association solely because a fuzzy-name score crosses an invented threshold.
The CRM hygiene workflow covers conservative identity review and recovery from a mistaken update.
Validate against the destination's actual schema
Check text versus numeric types, date formats, accepted option values, association rules and read-only fields. Preserve raw observations so a mapping error can be investigated without another source retrieval.
HubSpot's property documentation explains its property definitions. For Pipedrive, use the current field reference and API version; custom-field identifiers and request structure must match that version.
A field label copied from the CRM interface is not sufficient proof of the API identifier. Validate the map against the configured account before writing a larger list.
Apply a recoverable update process
- Store the successful source response and job reference.
- Validate and transform into an internal staging record.
- Resolve identity and compare protected destination values.
- Construct only approved field changes.
- Write and inspect the destination's documented result.
- Keep a record of changed fields, unresolved conflicts and final outcome.
If a destination write fails, recover that stage from the saved response. A new search may consume credits again without correcting the mapping problem. The CRM integration guide connects these stages.
Test edge cases and activation boundaries
- Missing values, unexpected types and unknown enumeration options.
- A protected manual value that conflicts with a source observation.
- Two plausible destination matches.
- A repeated delivery after a partial write.
- A suppressed contact whose data update must not restart outreach.
Use fixtures for mapping tests, then a small controlled destination run. Track successful updates separately from campaign eligibility and later commercial outcomes.



