Newer Version Available
Choose an Event for the Enhanced Policy
| Available in: Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Unlimited, and
Developer Editions Requires Salesforce Shield or Salesforce Event Monitoring add-on subscriptions. |
When you create a legacy policy, you first choose an event type and then a resource based on that event. The legacy event types are:
- Data Export—Monitors both API queries and report exports.
- Resource Access—Monitors when a report or dashboard is viewed.
- Login—Monitors logins from the UI or API.
- Entity—Monitors Chatter activity.
The enhanced framework is simpler because you choose just one event and no resource. The events you can use in an enhanced transaction security policy are a subset of the Real-Time Event Monitoring event objects.
These legacy event types have equivalent events in the enhanced framework.
| If you used this event type in your legacy policy... | Use this event in the new enhanced policy. |
|---|---|
| Data Export (for monitoring API queries) | ApiEvent |
| Data Export (for monitoring report exports) | ReportEvent |
| Resource Access | ReportEvent |
| Login | LoginEvent |
| Entity | No equivalent. |
Follow Along with the Lead Data Export Example
Let’s look at the legacy Lead Data Export policy example and choose an event for the new enhanced policy.
The legacy Lead Data Export policy blocks excessive downloads of lead data and is based on the Data Export event type. Data Export maps to either ApiEvent or ReportEvent, depending on whether you’re monitoring API queries or report exports.
- To block excessive lead data downloads from API queries, create an enhanced policy on ApiEvent.
- To block the downloads from report exports, create an enhanced policy on ReportEvent.
- To block the downloads from both API queries and report exports, create two enhanced policies, one on ApiEvent and one on ReportEvent.
This migration example focuses on the last option and creates two policies, one based on ApiEvent, and the other based on ReportEvent.