TenantConsumptionAlert
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()
Fields
Usage
TenantConsumptionAlert stores a record each time a utilization signal is reached for your org's consumption-based products or license utilization. Each record represents a single triggered signal and is structured hierarchically:
AlertType identifies the high-level signal category.
- AlertScope (and its sub-scopes) identifies the specific resource that triggered the signal.
- TriggerType and TriggerValue define the condition that was met.
There are two types of alerts: Salesforce-managed and user-defined.
- Salesforce-managed alerts are created by Salesforce processes via invocable actions. Alert types for these alerts are prefixed with sf__. Salesforce validates that the triggering condition is correct on creation and provides out-of-the-box features, including flow templates and invocable actions, to manage the alert lifecycle. Lifecycle fields such as AlertStatus and IsNotificationSent are updated automatically.
- User-defined alerts offer the flexibility to define any signal that meets your use case. However, all fields must be set manually. Lifecycle fields like AlertStatus and IsNotificationSent aren’t updated automatically.
About Salesforce-Managed Alert Types
Consumption Threshold alerts are triggered when consumption of a Digital Wallet consumption card reaches a specified threshold. For setup information, see Salesforce Help: Get Digital Wallet Notifications about Your Usage.
This table illustrates an alert for when the Data Services Credits consumption card exceeds 70% of its credits consumption based on its entitlements.
| Field | Value |
|---|---|
| AlertType | sf__ConsumptionThreshold |
| AlertStatus | Active |
| AlertScope | The developer name for the consumption card, for example, PlatformServicesCard. |
| AlertSubScope1 | Business environment (always Production) |
| AlertSubScope2 | PrePurchased. Buying models include PrePurchased, PreCommitted, or PayGo, but not all consumption cards support all buying models. |
| TriggerType | ThresholdPercent |
| TriggerValue | 70 |
| AlertTimestamp | Date and time alert was triggered. |
| IsNotificationSent | true |
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
- TenantConsumptionAlertOwnerSharingRule
- Sharing rules are available for the object.
- TenantConsumptionAlertShare
- Sharing is available for the object.