Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Migrates CRM data into HubSpot from Salesforce, Pipedrive, or Copper, or exports it out, preserving IDs and associations.
Use this skill ↓64% 82%+18 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 14 of 22 without it.
We are migrating 50,000 records from Salesforce into HubSpot. To preserve original Salesforce record IDs, what is the programmatic procedure to set up custom ID fields across objects before starting the import? Show the API request needed.
Treats HTTP status code 409 Conflict as a successful idempotent response.
3 of 3 safety checks passed
Move CRM data into HubSpot from Salesforce, Pipedrive, or Copper — or extract it back out — without losing cross-system IDs, breaking associations, or flooding the portal with duplicates. This is not a data-mapping worksheet. It is the code, sequencing, and guardrails your migration runs at 2am against 150K records when the daily API quota is finite, HubSpot has no bulk-delete API, and a bad import leaves permanent junk that requires a support ticket to remove.
The six production failures this skill addresses:
source_crm_id property on every object type before the first record lands, and write the source ID into it during import.batch/upsert not batch/create for contacts.M/D/Y format fail HubSpot's ISO 8601 validation; multi-picklist values not in HubSpot's allowed enumeration are silently dropped. Fix: run a pre-migration dry-run that validates every field against HubSpot's property schema before writing a single record.source_id → hubspot_id mapping file throughout the migration so batch/archive calls are programmable.Auth: set HUBSPOT_ACCESS_TOKEN environment variable to a private app token with CRM write scopes. For token caching, rotation, and multi-portal routing see the hubspot-auth skill in this pack.
crm.objects.contacts.write, crm.objects.companies.write, crm.objects.deals.write, crm.associations.write, crm.schemas.contacts.writepip install requests)HUBSPOT_ACCESS_TOKEN set in environmentBefore importing a single record, create a custom property on every object type to store the source CRM's record ID. Treat 409 CONFLICT as success — property creation is idempotent.
import os, requests
TOKEN = os.environ["HUBSPOT_ACCESS_TOKEN"]
BASE = "https://api.hubapi.com"
HDRS = {"Authorization": f"Bearer {TOKEN}", "Content-Type": "application/json"}
def create_source_id_property(object_type: str, source_crm: str) -> None:
prop_name = f"{source_crm}_id"
payload = {
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.