The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, OmniStudio, and integrations.
Controller class for the lightning web component related-log-entries
getQueryResult(Id recordId,String fieldSetName,Integer rowLimit,Integer rowOffset,String sortByFieldName,String sortDirection,String search) → LogEntryQueryResultUsed by the component relatedLogEntries to get log entries for a particular record (based on record ID)
| Param | Description |
|---|---|
recordId |
Used to filter LogEntryc records where RecordIdc == recordId |
fieldSetName |
The API/developer name of the field set |
rowLimit |
The max number of rows to query |
rowOffset |
Reserved for future use |
sortByFieldName |
The field to sort by |
sortDirection |
The direction to sort by (asc or desc)) |
search |
An optional search term to filter by |
Type
LogEntryQueryResult
Description
The instance of LogEntryQueryResult, containing matching records and metadata
An inner, wrapper class containing metadata information about an individual field.
fieldName → StringA string containing the API name of the field, in particular the field path as it relates to the parent field set.
isNameField → BooleanBoolean that returns true if this field is the standard Name field for its parent object.
label → StringA string containing the label of the field.
lookupDisplayFieldName → StringA string used for lookup fields to indicate the display name of the lookup / relationship.
relationshipName → StringIf the field is a lookup or master detail relationship, this string will return the relationship API name. For instance: Lookupr instead of Lookupc.
sortable → BooleanBoolean that returns true if this field is sortable.
type → StringReturns the type of the field, matching the Schema.DisplayType ENUM values, but in all lowercase letters.
Inner, wrapper class, containing metadata around the list of fields used in the related log entry query.
fields → List<FieldMetadata>A list of field related metadata
label → StringContains the label of the desired field set, fetched using a describe call on the field set.
name → StringA string containing the API name of the field set, including the namespace prefix, if applicable.
Inner, wrapper class that contains query result information after querying related log entries.
fieldSet → FieldSetMetadataContains the fieldSet associated with this query.
isAccessible → BooleanContains the result of the CRUD check, determining if the log entry is "accessible" for the current user.
label → StringContains the label of the log entry sObject, fetched using a describe call in the constructor.
labelPlural → StringContains the plural label of the log entry sObject, fetched using a describe call in the constructor.
records → List<LogEntry__c>contains the log entry results from the query.
totalLogEntriesCount → IntegerContains the number of records returned via the log entries query.