You need to have Postman setup and configured. If you aren't sure how to do that, check out this video.
Using the custom-object JSON files, make a POST request to:
POST https://api.hubapi.com/crm/v3/schemas
Copy the contents of each JSON file into the Body of the request.
Important: Create them in this order. Later steps depend on these objects existing first.
1.custom-object-locations.json1.custom-object-vehicles.json1.custom-object-rental-agreement.json
After each request succeeds, note the objectTypeId in the response (e.g. 2-12345678). You will need these IDs for Step 2.
Using the properties JSON files, make a POST request to:
POST https://api.hubapi.com/crm/v3/properties/{objectTypeId}/batch/create
Replace {objectTypeId} with the ID you got from Step 1 for each object. Copy the contents of the matching JSON file into the Body of the request.
2.properties-locations.json-> use the LocationsobjectTypeId2.properties-vehicles.json-> use the VehiclesobjectTypeId2.properties-rental-agreement.json-> use the Rental AgreementsobjectTypeId
Some number properties need to be set to unformatted in HubSpot, otherwise they display with comma separators (e.g. 06040 becomes 6,040) which can break CRM cards and look wrong to users. The JSON files in this repo already have "numberDisplayHint": "unformatted" set where needed, but if you create properties manually, watch out for:
- Postal Code — zip codes like
06040will display as6,040if formatted - Lat / Lng — geographic coordinates should never have comma separators
If you already created the properties and need to fix this, go to Settings > Properties, find the property, and change the Number Format to Unformatted.
- Name: Number of Available Vehicles
- Internal Name: number_of_available_vehicles
- Type: Rollup
- Rollup Type: Count
- Number Format: Formatted number
- Association Record Type: Vehicle
- Record Property: Record ID
- Additional Conditions
- Property: Available == Yes
Within your HubSpot CRM Sandbox account, create the following associations.
- One to Many :: Vehicles.
- Many to One :: Location.
- Many to Many :: Rental Agreements.
- Many to Many :: Companies.
- Many to Many :: Contacts.
- One to One :: Deal.
- Many to Many :: Vehicles.
Important: You must create the associations in Step 3 before importing data. Otherwise you won't be able to map relationships between vehicles and locations during the import.
Using HubSpot's Import Feature, import your data in this order:
3.crm-bootcamp-locations.csv3.crm-bootcamp-vehicles.csv
If you have any issues or questions, message us on the Bootcamp Slack Channel.
