Skip to Content
Heuristic documentation

read_crm

Read only

Read the CRMs Heuristic can connect, a product's CRM connections, their ARR fields and the currencies.

Set action to one of these:

  • connectors: The CRMs Heuristic can connect: each one's id and name. Connect one to a product with manage_crm with action connect and its id as connectorId.
  • connections (needs productId): The product's connected CRM accounts, oldest first: id, CRM, account, sync status and what ARR is read from (arrField: won deals' ARR with standard: true, a company number field, or null). Feedback from a CRM arrives as source records, with companies, customer status and ARR from the CRM.
  • arr_fields (needs productId, connectionId): What a connection's ARR can be read from: first won deals' ARR (standard: true, the default) where the CRM has a standard ARR on deals, each company's ARR being its sum over its won deals. Then the account's company number fields (standard: false); a company's own annual revenue is never offered, since it is the customer's revenue, not what they pay. Pick a company field when the team keeps ARR on the company (such as a rollup) or enters renewals as new won deals (counted twice by won deals' ARR). Choose with manage_crm with action set_arr_field.
  • currencies: The currencies an organization can show ARR in: EUR and every currency with a stored exchange rate (the European Central Bank's daily reference rates), with the day the rates are for (null before the first fetch). Set it with manage_organization with action update.

Actions (set action)

connectors

Who can use it
Anyone signed in
Hints
Read only
Runs
list_crm_connectors
Inputs
No inputs

connections

Who can use it
Admins, and the product's Owners and Viewers
Hints
Read only
Runs
list_crm_connections
Inputs
  • productId string, required

    From read_product with action list or get_me.

arr_fields

Who can use it
Admins, and the product's Owners and Viewers
Hints
Read only
Runs
list_arr_fields
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • connectionId string, required

    The CRM connection's id, from read_crm with action connections.

currencies

Who can use it
Anyone signed in
Hints
Read only
Runs
list_currencies
Inputs
No inputs