manage_crm
Changes data
Connect and disconnect a product's CRM accounts, and choose where their ARR comes from (product Owners).
Set action to one of these:
connect(needsproductId,connectorId): Connect a CRM account to the product. Answers the CRM's install URL, valid 10 minutes and once: the person opens it in a browser, chooses an account and approves; Heuristic then connects it and syncs its feedback (check withread_crmactionconnections). One connection per CRM: refused while one exists; disconnect it first.disconnect(needsproductId,connectionId): Disconnect a CRM account: syncing stops at once; feedback it synced stays. Connecting again needs the person to approve in the CRM. This can't be undone, so Heuristic asks the person first (seeconfirm).set_arr_field(needsproductId,connectionId,body): Choose what a connection reads ARR from: anamefromread_crmwith actionarr_fields, won deals' ARR (standard: true, the default) or a company number field (when the team keeps ARR on the company or enters renewals as new won deals). Null reads no ARR from the CRM; companies keep the ARR they have. After a change to won deals or a field, every company the connection supplied gets its ARR again at the next sync; won deals' ARR needs no read of the CRM. Repeating the same request changes nothing, so a retry is safe.
Actions (set action)
connect
- Who can use it
- Admins and the product's Owners
- Hints
- Changes dataReaches outside Heuristic
- Runs
connect_hubspot- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.connectorIdstring, requiredThe CRM's id, from
read_crmwith actionconnectors.Allowed values:hubspot
disconnect
- Who can use it
- Admins and the product's Owners
- Hints
- Changes dataCan remove dataAsks the person to confirm
- Runs
disconnect_crm_connection- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.connectionIdstring, requiredThe CRM connection's id, from
read_crmwith actionconnections.confirmbooleanTrue only after the person said yes to the question a first call answered with
confirmation_required. Ignored when your app can show the person questions: Heuristic then asks them itself.
set_arr_field
- Who can use it
- Admins and the product's Owners
- Hints
- Changes dataSafe to repeat
- Runs
set_arr_field- Inputs
productIdstring, requiredFrom
read_productwith actionlistorget_me.connectionIdstring, requiredThe CRM connection's id, from
read_crmwith actionconnections.bodyobject, requiredThe field to read ARR from.
namestring or null, requiredA
namefromread_crmwith actionarr_fields: won deals' ARR (standard: true, the default) or a company number field; or null to read no ARR from the CRM.