☁️

Alert Stale Deals

@elastic/sfdc_alert_stale_deals

Create a workflow that monitors for stale opportunities and sends alerts

Usage

RUN SKILL sfdc_alert_stale_deals()

With parameters:

RUN SKILL sfdc_alert_stale_deals WITH stale_days = 0, slack_channel = 'value', min_amount = 0

Parameters

NameTypeDefaultDescription
stale_daysINT
slack_channelSTRINGSlack channel for alerts
min_amountINT

Returns

DOCUMENT— A single document object

Example

-- 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
  }
}