@elastic/sfdc_alert_stale_deals
Create a workflow that monitors for stale opportunities and sends alerts
RUN SKILL sfdc_alert_stale_deals()With parameters:
RUN SKILL sfdc_alert_stale_deals WITH stale_days = 0, slack_channel = 'value', min_amount = 0| Name | Type | Default | Description |
|---|---|---|---|
| stale_days | INT | — | |
| slack_channel | STRING | — | Slack channel for alerts |
| min_amount | INT | — |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL sfdc_alert_stale_deals()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}