Loading...
Loading...
Compare original and translation side by side
| File | When to use |
|---|---|
| Filter cookbook of churn signals — |
| 文件 | 使用场景 |
|---|---|
| 客户流失信号筛选手册 — 针对 |
bulk-operations/SKILL.mdsales-execution/SKILL.mdhubspot properties get --type contacts notes_last_contacted... hs_last_sales_activity_date... --type subscriptions hs_subscription_statussubscriptionssubscriptions-readbulk-operations/SKILL.mdsales-execution/SKILL.mdhubspot properties get --type contacts notes_last_contacted... hs_last_sales_activity_date... --type subscriptions hs_subscription_statussubscriptionssubscriptions-readCUTOFF=$(date -v-60d +%Y-%m-%d 2>/dev/null || date -d '60 days ago' +%Y-%m-%d)CUTOFF=$(date -v-60d +%Y-%m-%d 2>/dev/null || date -d '60 days ago' +%Y-%m-%d)
For more signals (email opt-out, stale tickets, no open deals) see `resources/customer-health-signals.md`. For >100 hits, use the pagination loop from `bulk-operations`.
更多信号(邮件退订、停滞工单、无未结交易)请查看`resources/customer-health-signals.md`。如果搜索结果超过100条,请使用`bulk-operations`中的分页循环。subscriptionshubspot objects typeshs_subscription_statushubspot properties get --type subscriptions hs_subscription_status # lists allowed valuessubscriptionshubspot objects typeshs_subscription_statushubspot properties get --type subscriptions hs_subscription_status # 列出允许的值undefinedundefinedsales-executiontask_id=$(hubspot objects create --type tasks \
--property hs_task_subject="Q1 retention check-in" \
--property hs_task_priority=HIGH --property hs_task_status=NOT_STARTED \
--property hs_task_type=CALL --property hs_timestamp=$(date +%s)000 \
--format json | jq -r '.id')
hubspot associations create --from tasks:$task_id --to contacts:<contact_id>sales-executiontask_id=$(hubspot objects create --type tasks \
--property hs_task_subject="Q1 retention check-in" \
--property hs_task_priority=HIGH --property hs_task_status=NOT_STARTED \
--property hs_task_type=CALL --property hs_timestamp=$(date +%s)000 \
--format json | jq -r '.id')
hubspot associations create --from tasks:$task_id --to contacts:<contact_id>jqobjects create--dry-runbulk-operationsDUE_MS=$(( ($(date +%s) + 2*86400) * 1000 )) # due in 2 daysjqobjects create--dry-runbulk-operationsDUE_MS=$(( ($(date +%s) + 2*86400) * 1000 )) # 2天后到期
One CLI call for the search, one for the create, then N for associations — no `xargs -I{}` per record. The output-order guarantee of `objects create` (one result per stdin line, in order — see `bulk-operations` "Output shape") is what makes the `paste` correct.一次CLI调用完成搜索,一次调用完成任务创建,然后N次调用完成关联 — 无需为每条记录使用`xargs -I{}`。`objects create`的输出顺序保证(每行标准输入对应一个结果,顺序一致 — 详见`bulk-operations`中的“输出格式”)是`paste`命令能够正确执行的关键。hubspot associations createhubspot associations create