NebulaLogger

The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.

View the Project on GitHub jongpie/NebulaLogger

RelatedLogEntriesController class

Controller class for the lightning web component related-log-entries


Methods

getQueryResult(Id recordId,String fieldSetName,Integer rowLimit,Integer rowOffset,String sortByFieldName,String sortDirection,String search)LogEntryQueryResult

Used by the component relatedLogEntries to get log entries for a particular record (based on record ID)

Parameters
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
Return

Type

LogEntryQueryResult

Description

The instance of LogEntryQueryResult, containing matching records and metadata


Inner Classes

RelatedLogEntriesController.FieldMetadata class

An inner, wrapper class containing metadata information about an individual field.


Properties
fieldNameString

A string containing the API name of the field, in particular the field path as it relates to the parent field set.

isNameFieldBoolean

Boolean that returns true if this field is the standard Name field for its parent object.

labelString

A string containing the label of the field.

lookupDisplayFieldNameString

A string used for lookup fields to indicate the display name of the lookup / relationship.

relationshipNameString

If the field is a lookup or master detail relationship, this string will return the relationship API name. For instance: Lookupr instead of Lookupc.

sortableBoolean

Boolean that returns true if this field is sortable.

typeString

Returns the type of the field, matching the Schema.DisplayType ENUM values, but in all lowercase letters.


RelatedLogEntriesController.FieldSetMetadata class

Inner, wrapper class, containing metadata around the list of fields used in the related log entry query.


Properties
fieldsList<FieldMetadata>

A list of field related metadata

labelString

Contains the label of the desired field set, fetched using a describe call on the field set.

nameString

A string containing the API name of the field set, including the namespace prefix, if applicable.


RelatedLogEntriesController.LogEntryQueryResult class

Inner, wrapper class that contains query result information after querying related log entries.


Properties
fieldSetFieldSetMetadata

Contains the fieldSet associated with this query.

isAccessibleBoolean

Contains the result of the CRUD check, determining if the log entry is "accessible" for the current user.

labelString

Contains the label of the log entry sObject, fetched using a describe call in the constructor.

labelPluralString

Contains the plural label of the log entry sObject, fetched using a describe call in the constructor.

recordsList<LogEntry__c>

contains the log entry results from the query.

totalLogEntriesCountInteger

Contains the number of records returned via the log entries query.