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.
Selector class used for all queries that are specific to the log management layer
getAll(Schema.SObjectType sobjectType, Set<String> fieldNames) → List<SObject>Dynamically queries & returns all records in the specified SObjectType
| Param | Description |
|---|---|
sobjectType |
The SObjectType to query |
fieldNames |
Set<String> API names of any fields to include in the query |
Type
List<SObject>
Description
List<SObject> containing any records in the specified SObjectType
getApexClasses(Set<String> apexClassNames) → List<Schema.ApexClass>Returns a list of Schema.ApexClass records
| Param | Description |
|---|---|
apexClassNames |
The names of the Apex classes to query |
Type
List<Schema.ApexClass>
Description
List<Schema.ApexClass> containing any matching records
getApexTriggers(Set<String> apexTriggerNames) → List<Schema.ApexTrigger>Returns a list of Schema.ApexTrigger records
| Param | Description |
|---|---|
apexTriggerNames |
The names of the Apex triggers to query |
Type
List<Schema.ApexTrigger>
Description
List<Schema.ApexTrigger> containing any matching records
getById(Schema.SObjectType sobjectType, Set<String> fieldNames, List<Id> recordIds) → List<SObject>Dynamically queries & returns records in the specified SObjectType based on the specified record IDs
| Param | Description |
|---|---|
sobjectType |
The SObjectType to query |
fieldNames |
Set<String> API names of any fields to include in the query |
recordIds |
List<Id> of record IDs to include in the query results |
Type
List<SObject>
Description
List<SObject> containing any matching records in the specified SObjectType
getCachedApexEmailNotifications() → List<Schema.ApexEmailNotification>Returns a cached copy of the Schema.ApexEmailNotification records in the org
Type
List<Schema.ApexEmailNotification>
Description
The cached List<Schema.ApexEmailNotification> records
getCachedRecentLogWithApiReleaseDetails() → Log__cReturns a cached Log__c record that has been created within the last 4 hours that has API details populated from calling https://api.status.salesforce.com
Type
Log__c
Description
The cached Log__c record, or null if no match is found
getCountOfAsyncApexJobs(String apexClassName, String apexMethodName, List<String> jobStatuses) → IntegerReturns the count of Schema.AsyncApexJob records with the specified Apex class name, method name & job status
| Param | Description |
|---|---|
apexClassName |
The fully-qualified name of the Apex class associated with Schema.AsyncApexJob |
apexMethodName |
The specific method (if any) within the Apex class associated with Schema.AsyncApexJob |
jobStatuses |
The list of job statuses that should be used to filter AsynxApexJob records |
Type
Integer
Description
The Integer count of matching AsynxApexJob records
getCountOfRelatedRecordLogEntries(Id recordId) → IntegerReturns the count of LogEntry__c records related to the specified record ID
| Param | Description |
|---|---|
recordId |
The ID to use for filtering LogEntry__c records |
Type
Integer
Description
The Integer count of matching LogEntry__c records
getDeleteableUserRecordAccess(List<Id> recordIds) → List<Schema.UserRecordAccess>Returns the list of Schema.UserRecordAccess records for any of the specified record IDs that the current user can delete
| Param | Description |
|---|---|
recordIds |
The list of ID for records to be deleted |
Type
List<Schema.UserRecordAccess>
Description
The matching List<Schema.UserRecordAccess> records
getFlowDefinitionViewsByFlowApiName(List<String> flowApiNames) → List<Schema.FlowDefinitionView>Returns a list of Schema.FlowDefinitionView records
| Param | Description |
|---|---|
flowApiNames |
The names of the Apex classes to query |
Type
List<Schema.FlowDefinitionView>
Description
List<Schema.FlowDefinitionView> containing any matching records
getFlowVersionViewsByDurableId(List<String> durableIds) → List<Schema.FlowVersionView>Returns a list of Schema.FlowVersionView records description
| Param | Description |
|---|---|
durableIds |
The durable IDs of the Flows to query |
Type
List<Schema.FlowVersionView>
Description
List<Schema.FlowDefinitionView> containing any matching records
getInstance() → LogManagementDataSelectorThe instance LogManagementDataSelector used for any querying specific to the log management layer
Type
LogManagementDataSelector
Description
The singleton instance of LogManagementDataSelector
getLogById(Id logId) → Log__cReturns a Log__c record
| Param | Description |
|---|---|
logId |
The ID of the Log__c record to query |
Type
Log__c
Description
The matching Log__c record
getLogEntriesByLogId(Id logId) → List<LogEntry__c>Returns a List<LogEntry__c> records for the specified Log__c ID
| Param | Description |
|---|---|
logId |
The ID of the Log__c record of the LogEntry__c records to query |
Type
List<LogEntry__c>
Description
The matching List<LogEntry__c> records
getLogEntryById(Id logEntryId) → LogEntry__cReturns a LogEntry__c record
| Param | Description |
|---|---|
logEntryId |
The ID of the LogEntry__c record to query |
Type
LogEntry__c
Description
The matching LogEntry__c record
getLoggerScenariosById(List<Id> logScenarioIds) → List<LoggerScenario__c>Returns a List<LoggerScenario__c> of records with the specified log scenario IDs
| Param | Description |
|---|---|
logScenarioIds |
The list of ID of the Log__c records to query |
Type
List<LoggerScenario__c>
Description
The list of matching LoggerScenario__c records
getLogsById(List<Id> logIds) → List<Log__c>Returns a Log__c record and its related LogEntry__c records
| Param | Description |
|---|---|
logIds |
The list of ID of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c records
getLogsByTransactionId(List<String> transactionIds) → List<Log__c>Returns a List<Log__c> of records with the specified transaction IDs
| Param | Description |
|---|---|
transactionIds |
The list of String transaction IDs of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c records
getLogsWithoutParentLogByParentTransactionId(List<String> parentTransactionIds) → List<Log__c>Returns a List<Log__c> of records with the specified parent transaction IDs and a null value in ParentLog__c
| Param | Description |
|---|---|
parentTransactionIds |
The list of String parent transaction IDs of the Log__c records to query |
Type
List<Log__c>
Description
The list of matching Log__c records
getOmniProcessProxies(List<Id> omniProcessIds) → Map<Id, LoggerSObjectProxy.OmniProcess>Returns a list of matching Schema.OmniProcess records based on the provided list of OmniProcess IDs
| Param | Description |
|---|---|
omniProcessIds |
The list of Schema.OmniProcess IDs to query |
Type
Map<Id, LoggerSObjectProxy.OmniProcess>
Description
The instance of Map<Id, SObject> containing any matching Schema.OmniProcess records
getProfilesById(List<Id> profileIds) → List<Schema.Profile>Returns a List<Schema.Profile> of records with the specified profile IDs
| Param | Description |
|---|---|
profileIds |
The list of ID of the Schema.Profile records to query |
Type
List<Schema.Profile>
Description
The list of matching Schema.Profile records
getProfilesByNameSearch(String searchTerm) → List<Schema.Profile>Returns a List<Schema.Profile> of records where the profile's names partially matches the specified search term
| Param | Description |
|---|---|
searchTerm |
The String search term to use for searching Schema.Profile records |
Type
List<Schema.Profile>
Description
The list of matching Schema.Profile records
getQueuesByDeveloperName(List<String> queueDeveloperNames) → List<Schema.Group>Returns a List<Schema.Group> of records with the specified developer names and type == 'Queue'
| Param | Description |
|---|---|
queueDeveloperNames |
The list of String queue developer names to query |
Type
List<Schema.Group>
Description
The list of matching Schema.Group records
getRecordLogEntries(Id recordId, String fieldsClause, String orderByClause, Integer rowLimit) → List<LogEntry__c>Returns the list of LogEntry__c records related to the specified record ID
| Param | Description |
|---|---|
recordId |
The ID to use for filtering LogEntry__c records |
fieldsClause |
A comma-separated String of field API names to include in the query |
orderByClause |
A comma-separated String of field API names to use for sorting the query results |
rowLimit |
The maximum number of records to return |
Type
List<LogEntry__c>
Description
The list of matching LogEntry__c records
getTagsByName(Set<String> tagNames) → List<LoggerTag__c>Returns a list of LoggerTag__c records with one of the specified tag names
| Param | Description |
|---|---|
tagNames |
The set of String tag names to query |
Type
List<LoggerTag__c>
Description
The list of matching LoggerTag__c records
getTopicsByName(Set<String> topicNames) → List<Schema.Topic>Returns a list of Schema.Topic records with one of the specified topic names
| Param | Description |
|---|---|
topicNames |
The set of String topic names to query |
Type
List<Schema.Topic>
Description
The list of matching Schema.Topic records
getUsersById(List<Id> userIds) → List<Schema.User>Returns a List<Schema.User> of records with the specified user IDs
| Param | Description |
|---|---|
userIds |
The list of ID of the Schema.User records to query |
Type
List<Schema.User>
Description
The list of matching Schema.User records
getUsersByNameSearch(String searchTerm) → List<Schema.User>Returns a List<Schema.User> of records where the User's names or username partially matches the specified search term
| Param | Description |
|---|---|
searchTerm |
The String search term to use for searching Schema.User records |
Type
List<Schema.User>
Description
The list of matching Schema.User records
getUsersByUsername(List<String> usernames) → List<Schema.User>Returns a List<Schema.User> of records with the specified usernames (Schema.User.Username)
| Param | Description |
|---|---|
usernames |
The list of String user usernames to query |
Type
List<Schema.User>
Description
Tje list of matching Schema.User records