@elastic/sfdc_stale_opportunities
Find opportunities with no activity in N days
RUN SKILL sfdc_stale_opportunities()With parameters:
RUN SKILL sfdc_stale_opportunities WITH stale_days = 0, min_amount = 0, owner = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| stale_days | INT | — | |
| min_amount | INT | — | |
| owner | STRING | — | Filter by opportunity owner name |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL sfdc_stale_opportunities()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}