FlowmageDocs

Read records in bulk

BetaReads data

Fetches up to a hundred HubSpot records by id or by a unique property.

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.
Record idsA list of at most 100 ids, or of the key values when a key property is named below.
Look up by propertyLeave empty to read by HubSpot record id. Fill in email to read contacts by e-mail, or the internal name of any unique-identifier property.
Properties to fetchComma-separated. Associated records cannot be read here — use the List associations node for those.
Properties with their historyComma-separated. Each one comes back with its previous values too.
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"
recordIdsany JSONits `{{ }}` must give an array
idPropertytext
propertiestext
propertiesWithHistorytext

Output

FieldType
recordsarray
recordCountRecords in this answernumber
errorsIds HubSpot could not readarray
numErrorsHow many it could not readnumber
Sample output, and the expression for each field
  • errors[]
  • numErrors0
  • recordCount0
  • records[]

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": {
    "connection": "<connection id>",
    "customObjectType": "",
    "idProperty": "",
    "object": "contacts",
    "properties": "",
    "propertiesWithHistory": "",
    "recordIds": "<record ids>"
  },
  "label": "Read records in bulk",
  "type": "hubspot.batchReadRecords",
  "version": 1
}