FlowmageDocs

Create record

BetaChanges data

Creates one HubSpot record and optionally links it to another.

Settings

SettingWhat it is
ConnectionRequiredThe HubSpot connection the step signs in with.
Object"contacts" or "companies" or "deals" or "tickets" or "notes" or "tasks" or "calls" or "meetings" or "emails" or "leads" or "products" or "line_items" or "custom"
Custom object type idThe object type id, e.g. 2-1234567. The List properties node shows it.
PropertiesOne row per property, keyed by its internal name. Deals need dealname, dealstage and pipeline; tickets need subject, hs_pipeline and hs_pipeline_stage; notes, tasks, calls and meetings need hs_timestamp.
Link it toOptional. HubSpot links the new record to an existing one in the same call.
Id of the record to link totext
Association type idLeave at 0 to use HubSpot's default for this pair. The id is directional: starting at a contact, the id that marks a company primary is 1; starting at the company it is 2.
Association category"HUBSPOT_DEFINED" or "USER_DEFINED"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `hubspot`)
object"contacts" or "companies" or "deals" or "tickets" or "notes" or "tasks" or "calls" or "meetings" or "emails" or "leads" or "products" or "line_items" or "custom", by default "contacts"
customObjectTypetextused when `object` is "custom"
propertiesobject (any keys), by default {}
associateToObject"" or "contacts" or "companies" or "deals" or "tickets" or "notes" or "tasks" or "calls" or "meetings" or "emails" or "leads" or "products" or "line_items" or "custom"
associateToIdtextits `{{ }}` must give a string; used when `associateToObject` is not ""
associationTypeIdnumber, by default 0
associationCategory"HUBSPOT_DEFINED" or "USER_DEFINED", by default "HUBSPOT_DEFINED"

Output

FieldType
recordIdstring
recordobject
propertiesobject
Sample output, and the expression for each field
  • properties{}
  • record
    • id"1"
  • recordId"1"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "associateToId": "",
    "associateToObject": "",
    "associationCategory": "HUBSPOT_DEFINED",
    "associationTypeId": 0,
    "connection": "<connection id>",
    "customObjectType": "",
    "object": "contacts",
    "properties": {}
  },
  "label": "Create record",
  "type": "hubspot.createRecord",
  "version": 1
}