Newer Version Available

This content describes an older version of this product. View Latest

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.

Fields

Field Details
BROWSER_DEVICE_TYPE
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"
  • VVV—Three digits that indicate version, leading zeroes.
  • XYZ—Browser-type specific flags or options. Each digit in XYZ represents a different flag depending on the BrowserType:
    • 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 as MOBILE.
    • Z=2: If the browser is recognized as PHONE.
    • Z=3: If the browser is recognized as TABLET.
    • Z=4: If the browser is a recognized as MEDIA PLAYER.
    • Z=6: Only for Opera Mini.
B2B_EDITION
Type
String
Description
Edition of B2B Commerce. Edition can include Lightning (LB2B), CCRZ, or future flavors.
B2B_VERSION
Type
String
Description
This field is optional. For the managed package, then B2B_VERSION includes Major, Minor, Patch revision numbers. For Lightning B2B_VERSION includes the optional service version.
CONTEXT_ID
Type
String
Description
The contextId (Key Business Domain Value) in which the operation is done. For example, for Cart, the contextId is cartId.
CONTEXT_MAP
Type
String
Description
This field is optional. It holds a JSON string with additional operational context.
CORRELATION_ID
Type
String
Description
This field holds correlations, such as client to server and other asynchronous calls to B2B subsystems.
COUNT
Type
String
Description
The number of records impacted by this operation.
EFFECTIVE_ACCOUNT_ID
Type
String
Description
The B2B Effective Account ID in context of the operation.
ERROR_CODE
Type
String
Description
The API error code that appears when an operation fails. If there is no error the value is null.
ERROR_MESSAGE
Type
String
Description
Error message that appears when an operation fails. If there is no error the value is null.
EVENT_TYPE
Type
String
Description
The type of event. The value is always OneCommerceUsage.
IS_RETRY
Type
String
Description
The field is True if the operation resulted in a retry, otherwise it’s False. Understanding the frequency of operation retries helps determine the health of a service. The default value is False.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
For example: 00D000000000123.
Example
OPERATION
Type
String
Description
The name of the B2B service.
For example: CreateCart or KeywordSearch.
OPERATION_STAGE
Type
String
Description
This field is optional. Used to capture more granular operation level stages.
OPERATION_STATE
Type
String
Description
This field is optional. An enum for the state of the operation.
For example: CartLocked, OrderCancelled, InProgress, New, Update, and Pending.
OPERATION_STATUS
Type
String
Description
Enum with the outcome of the operation.
For example: Success or Fail.
OPERATION_TIME
Type
String
Description
Total time of the operation in milliseconds.
OS_VERSION
Type
String
Description
Code used to identify the operating system and version. The value is equal to 9999 for an unknown platform.
SERVICE_NAME
Type
String
Description
Enum of B2B Services.
For example: Cart, Pricing, Products, Order, Search, and so on.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services through the UI or the API.
For example: 00530000009M943
USER_TYPE
Type
String
Description
The category of user license.
Possible values are:
  • 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.
WEBSTORE_ID
Type
String
Description
This field is optional. The ID of the webstore associated with the store (site).
WEBSTORE_TYPE
Type
String
Description
The type of webstore.
For example: B2B, B2C, and OMS.