@elastic/sfdc_notify_deal_closed
Send celebratory Slack notification when a deal is marked as Closed Won
RUN SKILL sfdc_notify_deal_closed()With parameters:
RUN SKILL sfdc_notify_deal_closed WITH opportunity_id = 'value', slack_channel = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| opportunity_id | STRING | — | Salesforce Opportunity ID that was just closed |
| slack_channel | STRING | — | Slack channel for celebration |
-- 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
}
}