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 lwc loggerSettings
, used to manage records in LoggerSettings__c
canUserModifyLoggerSettings()
→ Boolean
Indicates if the current user has access to modify LoggerSettings__c
records, based on either object-level access on LoggerSettings__c
, or access to the custom permission CanModifyLoggerSettings
Type
Boolean
Description
return description
createRecord()
→ LoggerSettings__c
Creates a new, unsaved LoggerSettings__c
record
Type
LoggerSettings__c
Description
A new LoggerSettings__c
record, with all fields populated with default values
deleteRecord(LoggerSettings__c settingsRecord)
→ void
Deletes the specified LoggerSettings__c
record
Param | Description |
---|---|
settingsRecord |
The record to delete |
getOrganization()
→ Schema.Organization
Returns the Schema.Organization
record for the current environment
Type
Schema.Organization
Description
The current environment's Schema.Organization
record
getPicklistOptions()
→ LoggerSettingsPicklistOptions
Returns all of the List<PicklistOption>
used in the frontend for displaying certain text fields as picklist fields
Type
LoggerSettingsPicklistOptions
Description
The instance of LoggerSettingsPicklistOptions
, containing all picklist options for any fields treated as picklists
getRecords()
→ List<SettingsRecordResult>
Returns all existing LoggerSettings__c
records as instances of SettingsRecordResult
Type
List<SettingsRecordResult>
Description
The list of existing records
saveRecord(LoggerSettings__c settingsRecord)
→ void
Upserts the specified LoggerSettings__c
record
Param | Description |
---|---|
settingsRecord |
The record to save |
searchForSetupOwner(String setupOwnerType, String searchTerm)
→ List<SetupOwnerSearchResult>
searchForSetupOwner description
Param | Description |
---|---|
setupOwnerType |
The object to search (Schema.Profile or Schema.User ) |
searchTerm |
The search term to use when searching records |
Type
List<SetupOwnerSearchResult>
Description
The list of SetupOwnerSearchResult
, based on any matching SObject records
Inner class for returning all custom List<PicklistOption>
in a single Apex method call
loggingLevelOptions
→ List<PicklistOption>
platformEventStorageLocationOptions
→ List<PicklistOption>
purgeActionOptions
→ List<PicklistOption>
saveMethodOptions
→ List<PicklistOption>
setupOwnerTypeOptions
→ List<PicklistOption>
shareAccessLevelOptions
→ List<PicklistOption>
Inner DTO class for picklist options since Schema.PicklistEntry isn't supported for aura-enabled methods
label
→ String
value
→ String
Inner class used for sorting LoggerSettings__c, used for 3 reasons: 1. Trying to sort in SOQL on SetupOwner.Type, SetupOwner.Name results in only user-specific records being returned (no idea why - seems like a bug) 2. Records tied to profiles do not return the actual profile name in SetupOwner.Name - example: System Admin returns as 'PT1' in query results 3. Records tied to the org or profiles return unhelpful values in SetupOwner.Type - org returns '00D', profiles return '00e'
createdByUsername
→ String
lastModifiedByUsername
→ String
record
→ LoggerSettings__c
setupOwnerName
→ String
setupOwnerType
→ String
compareTo(Object compareTo)
→ Integer
Implements sorting logic for the System.Comparable
interface
####### Parameters
Param | Description |
---|---|
compareTo |
The object to compare to when sorting the current item |
####### Return
Type
Integer
Description
The sorting result
Inner class used for returning search results for Schema.Profile
and Schema.User
records
icon
→ String
image
→ String
label
→ String
recordId
→ Id
secondaryLabel
→ String