☁️

Notify Deal Closed

@elastic/sfdc_notify_deal_closed

Send celebratory Slack notification when a deal is marked as Closed Won

Usage

RUN SKILL sfdc_notify_deal_closed()

With parameters:

RUN SKILL sfdc_notify_deal_closed WITH opportunity_id = 'value', slack_channel = 'value'

Parameters

NameTypeDefaultDescription
opportunity_idSTRINGSalesforce Opportunity ID that was just closed
slack_channelSTRINGSlack channel for celebration

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_notify_deal_closed()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}