HubSpot line items in a live spreadsheet

Add the Line items table to a sheet as a data source named line_items and its 24 columns become names your formulas, pivot tables and charts use. Sheets reads it from your HubSpot account each time the sheet opens or refreshes.

Each account's columns are its own HubSpot properties, custom ones included. The columns listed here are HubSpot's standard properties; custom objects are tables too (Enterprise).

Formulas on this table

=data.line_items.sum(net_price)
Total net price. Adds up the Net price column over every row of Line items.
=data.line_items.sum(net_price, billing_frequency, A2)
Net price per billing frequency. With a billing frequency in A2, the total for that one. Fill it down next to a list of them.
=list.line_items(billing_frequency)
Every billing frequency, once. Spills the distinct billing frequency values down the column: the row labels for the formula above.
=data.line_items.count(record_id, billing_frequency, "<>")
Rows with a billing frequency. Counts the rows whose Billing frequency is not empty.
=data.line_items.avg(quantity)
Average quantity. avg, min, max, count, countd (distinct) and first work the same way as sum.

Columns

ColumnIn formulasType
Record IDrecord_idText
Billing frequencybilling_frequencyText
Create datecreate_dateDate and time
DescriptiondescriptionText
Last modified datelast_modified_dateDate and time
NamenameText
Net pricenet_priceNumber
Product IDproduct_idText
QuantityquantityNumber
SKUskuText
TermtermText
Total discounttotal_discountNumber
Unit costunit_costNumber
Unit discountunit_discountNumber
Unit priceunit_priceNumber
Associated dealsassociated_dealsText
Associated deal IDsassociated_deal_idsText
Deal IDdeal_idText
Deal: Deal namedeal_deal_nameText
Deal: Deal stagedeal_deal_stageText
Deal: Pipelinedeal_pipelineText
Deal: Amountdeal_amountNumber
Deal: Close datedeal_close_dateDate and time
Deal: Deal ownerdeal_deal_ownerText

Other commerce tables

Your line items, live

Contacts, companies, deals, tickets and activities become tables that formulas, pivot tables and charts read directly, opened inside HubSpot. Your numbers stay current without exporting.