MobileEnforcedPolicyEvent

Tracks enforcement of Enhanced Mobile Security policy events on a Salesforce mobile app with Enhanced Mobile Security. Events are created on first launch of the mobile app and user rechecks, and are batched and published when the app is in the background. This object is available in API version 47.0 and later.

Use the Mobile Security SDK to publish these events. Learn more with the Mobile Application Security help documentation.

Supported Calls

create(), describeSObjects()

Supported Subscribers

Subscriber Supported?
Apex Triggers Yes
Flows Yes
Processes Yes
Pub/Sub API Yes
Streaming API (CometD) Yes

Subscription Channel

/event/MobileEnforcedPolicyEvent

Special Access Rules

Accessing this object requires the Enhanced Mobile App Security and Salesforce Event Monitoring add-on subscriptions and the Enforce Enhanced Mobile App Security user permission.

As of Summer ’20 and later, only authenticated internal and external users can access this object.

Event Delivery Allocation Enforced

No

Fields

Field Details
AppPackageIdentifier
Type
string
Properties
Create
Description
Generic package identifier for the application.
AppVersion
Type
string
Properties
Create
Description
Version number of the application.
DeviceIdentifier
Type
string
Properties
Create
Description
Unique identifier for the device. Generated by Apple® or Google™.
DeviceModel
Type
string
Properties
Create
Description
Model name of the device.
EnforcedAction
Type
json
Properties
Create
Description
Action that the policy enforced.
Possible values are:
  • Warn
  • Error
  • Critical Error
EventDate
Type
dateTime
Properties
Create, Nillable
Description
Date of the mobile event. For example, 2020-01-20T19:12:26.965Z. Milliseconds are the most granular setting.
EventDescription
Type
string
Properties
Create, Nillable
Description
Description of the mobile event.
EventIdentifier
Type
string
Properties
Create, Nillable
Description
The unique ID of the event, which is shared with the corresponding storage object, if any. For example, 0a4779b0-0da1-4619-a373-0a36991dff90.
EventUuid
Type
string
Properties
Nillable
Description
A universally unique identifier (UUID) that identifies a platform event message. This field is available in API version 52.0 and later.
OsName
Type
string
Properties
Create
Description
Operating system name iOS or Android.
OsVersion
Type
string
Properties
Create
Description
Operating system version number.
PolicyResults
Type
json
Properties
Create
Description
Collection of the results of all policies enforced at the time of the event.
ReplayId
Type
string
Properties
Nillable
Description
Represents an ID value that is populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
UserId
Type
reference
Properties
Create, Namepointing
Description
ID of the user for whom policies were enforced.
WebkitVersion
Type
string
Properties
Create, Nillable
Description
Version of WebKit™ used to render web components.