wkcc__CmdCtrLog__c
Stores log messages (errors and exceptions) from Workplace Command Center and Wellness Check. Each log message contains information about the error, such as the originating Apex class, affected objects, logging level, user who executed the operation, and more. This object is available in orgs that have Work.com installed.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()
| Field | Type | Properties | Description |
|---|---|---|---|
| LastReferencedDate | dateTime | Filter, Nillable, Sort | The timestamp for when the current user last viewed a record related to this record. |
| LastViewedDate | dateTime | Filter, Nillable, Sort | The timestamp for when the current user last viewed this record. A null value can mean the record was only referenced and not viewed. |
| Name | string | Autonumber, Defaulted on create, Filter, idLookup, Sort | The name of this log message. |
| OwnerId | reference | Create, Defaulted on create, Filter, Group, Sort, Update | The ID of the user who currently owns this record. Default value is the user logged in to the API who ran create(). |
| wkcc__ClassName__c | string | Create, Filter, Group, Nillable, Sort, Update | Apex class from which the error originated. |
| wkcc__Level__c | picklist | Create, Filter, Group, Nillable, Restricted picklist, Sort, Update | Logging level for the operation that caused the error.Possible values are:
|
| wkcc__Message__c | textarea | Create, Nillable, Update | The error or exception. For example:Update failed. First exception on row 0 with id 1315w0000TwPnAAk: first error: FIELD_CUSTOM_VALIDATION_EXCEPTION. Location error message 1 for updating the parent location: []. |
| wkcc__ObjectIdList__c | textarea | Create, Nillable, Update | Comma-separated list of IDs for the standard and custom objects affected by the operation that caused the error. For example: 1315w0000TwPnAAk, 1315w0000TwQQAA0, 1315w0000TwQRAA0, 1315w0000TwREAAO. |
| wkcc__ObjectName__c | string | Create, Filter, Group, Nillable, Sort, Update | If the error was a result of a failed DML operation (insert, update, delete), then this field contains the object of the DML operation. For example: Location. |
| wkcc__Package__c | string | Create, Filter, Group, Nillable, Sort, Update | Reserved for future use. |
| wkcc__ResponseJson__c | textarea | Create, Nillable, Update | Reserved for future use. |
| wkcc__StackTrace__c | textarea | Create, Nillable, Update | Reserved for future use. |
| wkcc__User__c | reference | Create, Filter, Group, Nillable, Sort, Update | User who initiated the operation that caused the error. |
See Also