One Commerce Usage Event Type
One Commerce Usage events capture information about your Commerce instance. This event type is available in the EventLogFile object in API version 51.0 and later.
For details about event monitoring, see the Trailhead Event Monitoring module or REST API Developer’s Guide.
-
Type: Number
-
Description: A code used to identify the browser and device type. The code is in the format
BBVVVXYZ, with the following signification:-
BB- Two digits that indicate the browser type.- IE:
10 - CHROME:
13 - FIREFOX:
11 - SAFARI:
14 - OPERA:
15 - ANDROID_WEBKIT:
16 - NETSCAPE:
17 - OTHER_WEBKIT:
18 - OTHER_GECKO:
19 - OTHER_KHTML:
20 - OTHER_MOBILE:
21 - SALESFORCE_DESKTOP:
22 - BLACKBERRY:
23 - GOOD_ACCESS:
24 - EDGE:
25 - SALESFORCE_MOBILE:
26
- IE:
-
VVV- Three digits that indicate version, leading zeroes. -
XYZ- Browser-type specific flags or options. Each digit inXYZrepresents a different flag depending on the browser type:X=1- If the parser recognizes a “touch” browser. Here, touch means the older touch native client, not that the device supports touch.Y=1- If the parser recognizes a browser in compatibility mode. Only for IE.Z=1- If the browser is recognized asMOBILE.Z=2- If the browser is recognized asPHONE.Z=3- If the browser is recognized asTABLET.Z=4- If the browser is recognized asMEDIA PLAYER.Z=6- Only for Opera Mini.
-
- Type: String
- Description: Edition of B2B Commerce. Edition can include Lightning (LB2B), CCRZ, or future flavors.
- Type: String
- Description: This field is optional. For the managed package, then
B2B_VERSIONincludes Major, Minor, Patch revision numbers. For LightningB2B_VERSIONincludes the optional service version.
- Type: String
- Description: The IP address of the client that’s using Salesforce services. A Salesforce internal IP (such as a login from AppExchange) is shown as “Salesforce.com IP”. If the user’s session context isn’t available, this field returns a blank value.
- Type: String
- Description: The
contextId(Key Business Domain Value) in which the operation is done. For example, for Cart, thecontextIdiscartId.
- Type: String
- Description: This field is optional. It holds a JSON string with additional operational context.
- Type: String
- Description: This field holds correlations, such as client to server and other asynchronous calls to B2B subsystems.
- Type: String
- Description: The number of records impacted by this operation.
- Type: Number
- Description: The CPU time in milliseconds used to complete the request. This field indicates the amount of activity taking place in the app server layer.
- Type: Number
- Description: Time (in milliseconds) spent waiting for database processing in aggregate for all operations in the request. Compare this field to
CPU_TIMEto determine whether performance issues are occurring in the database layer or in your own code.
- Type: String
- Description: The B2B Effective Account ID in context of the operation.
- Type: String
- Description: The API error code that appears when an operation fails. If there is no error the value is
null.
- Type: String
- Description: Error message that appears when an operation fails. If there is no error the value is
null.
- Type: String
- Description: The type of event. The value is always
OneCommerceUsage.
- Type: String
- Description: The field is
Trueif the operation resulted in a retry, otherwise it’sFalse. Understanding the frequency of operation retries helps determine the health of a service. The default value isFalse.
- Type: String
- Description: The string that ties together all events in a given user’s login session. It starts with a login event and ends with either a logout event or the user session expiring.
- Example:
GeJCsym5eyvtEK2I
- Type: Id
- Description: The 15-character ID of the organization.
- Example:
00D000000000123
- Type: String
- Description: The name of the B2B service.
- Examples:
CreateCart,KeywordSearch
- Type: String
- Description: This field is optional. Used to capture more granular operation level stages.
- Type: String
- Description: This field is optional. An enum for the state of the operation.
- Examples:
CartLocked,OrderCancelled,InProgress,New,Update,Pending
- Type: String
- Description: Enum with the outcome of the operation.
- Examples:
Success,Fail
- Type: String
- Description: Total time of the operation in milliseconds.
- Type: String
- Description: Code used to identify the operating system and version. The value is equal to 9999 for an unknown platform.
- Type: String
- Description: The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same
REQUEST_ID. - Example:
3nWgxWbDKWWDIk0FKfF5DV
-
Type: String
-
Description: The status of the request for a page view or user interface action. This field can have a blank value.
-
Possible values:
S- Success. Salesforce handled the request successfully. If an Apex controller throws an exception, this status is also returned.F- Failure. Typically 4xx or 5xx HTTP codes, such as no permission to view page, page took too long to render, page is read-only.U- UndefinedA- Authorization ErrorR- Redirect. Typically a 3xx HTTP code, possibly initiated by an Apex controller in a Visualforce page.N- Not Found. 404 error.
-
Type: Number
-
Description: The amount of time that the request took in milliseconds. Requests with a value over five seconds are considered long-running requests for the purposes of the Concurrent Long-Running Apex Limit.
HTTP callout processing time isn’t included when calculating the 5-second limit. We pause the timer for the callout and resume it when the callout completes.
- Type: String
- Description: Enum of B2B Services.
- Examples:
Cart,Pricing,Products,Order,Search, and so on
- Type: String
- Description: The user’s unique session ID. You can use this value to identify all user events within a session. When a user logs out and logs in again, a new session is started.
- Example:
d7DEq/ANa7nNZZVD
- Type: String
- Description: The access time of Salesforce services in GMT.
- Example:
20130715233322.670
- Type: DateTime
- Description: The access time of Salesforce services in ISO8601-compatible format (
YYYY-MM-DDTHH:MM:SS.sssZ). The timezone is GMT. - Example:
2015-07-27T11:32:59.555Z
- Type: String
- Description: The URI of the page that’s receiving the request.
- Example:
/home/home.jsp
- Type: ID
- Description: The 18-character case-insensitive ID of the URI of the page that’s receiving the request.
- Type: Id
- Description: The 15-character ID of the user who’s using Salesforce services through the UI or the API.
- Example:
00530000009M943
- Type: Id
- Description: The 18-character case-insensitive ID of the user who’s using Salesforce services through the UI or the API.
- Example:
00590000000I1SNIA0
-
Type: String
-
Description: The category of user license.
-
Possible values:
CsnOnly- Users whose access to the application is limited to Chatter. This user type includes Chatter Free and Chatter moderator users.CspLitePortal- CSP Lite Portal license. Users whose access is limited because they’re organization customers and access the application through a customer portal or an Experience Cloud site.CustomerSuccess- Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal.Guest- Users whose access is limited so that your customers can view and interact with your site without logging in.PowerCustomerSuccess- Power Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal. Users with this license type can view and edit data they directly own or data owned by or shared with users below them in the customer portal role hierarchy.PowerPartner- Power Partner license. Users whose access is limited because they’re partners and typically access the application through a partner portal or site.SelfService- Users whose access is limited because they’re organization customers and access the application through a self-service portal.Standard- Standard user license. This user type also includes Salesforce Platform and Salesforce Platform One user licenses, and admins for this org.
- Type: String
- Description: This field is optional. The ID of the webstore associated with the store (site).
- Type: String
- Description: The type of webstore.
- Examples:
B2B,B2C,OMS