close.onLeadExitedSmartView runs once for each lead that disappears between two completed observations of a Close Smart View.
automations/on-close-lead-exited-smart-view.automation.ts
smartViewId. Optional static account selects a named Close binding; the project binding is the default. Private and user-dependent views are evaluated with that exact connected Close user’s permissions.
The initial observation establishes a baseline and does not emit existing leads. Later events return { leadId, smartViewId }. The ID-only payload remains usable when the lead exited because it was deleted or became inaccessible.
Close does not provide native membership events. This trigger therefore observes differences between completed polls; a transient entry and exit entirely between polls cannot be observed. Close caps Advanced Filtering pagination at 10,000 results, so larger Smart Views fail rather than silently truncating. Legacy text-only and non-lead Smart Views are not supported.