wkcc__WorkQueueItem__c
Coordinates Workplace Command Center background processing jobs, such as sending surveys or aggregating a location’s status. This object is available in orgs that have Workplace Command Center installed.
When, for example, an admin clicks Send Survey to send a survey to all individuals at a location, Work.com creates a record in the wkcc__WorkQueueItem__c object. Adding a record to this object is akin to adding a job to the work queue. The record contains information about the required work, such as the priority, status, and details of the work. Sensitive information, like the survey’s email template and recipient and location IDs, is encrypted and stored in the wkcc__EncryptedDetails__c field. A background process checks for new records which in turn kicks off a job to process the work, such as actually sending out the surveys. When the job is complete and successful, the background process deletes the record. If the job fails, the background process logs a message to the wkcc__CmdCtrLog__c object with details about the failure.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), 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 that the record was only referenced and not viewed. |
| Name | string | Autonumber, Defaulted on create, Filter, idLookup, Sort | The name of the record. |
| 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__EncryptedDetails__c | textarea | Create, Nillable, Update | Stores an encrypted serialized object with sensitive details about the job, such as the survey’s email template and IDs of the recipients and locations. |
| wkcc__JobDetailHash__c | double | Create, Filter, idLookup, Nillable, Sort, Update | Unique hash of the details of the job. The background process uses this value to prevent duplicate jobs. |
| wkcc__JobPriority__c | double | Create, Defaulted on create, Filter, idLookup, Nillable, Sort, Update | Specifies the priority of the job. The background process selects jobs with the highest number first. If two records have the same priority, the background process selects the most recently added job based on the record creation timestamp. Default value is 0. |
| wkcc__JobStatusDetails__c | textarea | Create, Nillable, Update | More details about the job’s status. Includes logged error messages. |
| wkcc__JobStatus__c | picklist | Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update | The status of the job.Possible values are:
|
| wkcc__JobType__c | string | Create, Filter, Group, Nillable, Sort, Update | Specifies the type of job, such as Survey or Status Aggregation. |
| wkcc__ProcessAfter__c | dateTime | Create, Defaulted on create, Filter, Nillable, Sort, Update | Delays the processing of the job until after the time specified in this field. While we can guarantee that the job will be processed after the specified time, we can’t guarantee how long after. |
| wkcc__QIStatus__c | string | Create, Filter, Group, Sort, Update | The name of the internal status Apex class that corresponds to this job. The background process uses this class to determine when to execute this job. |
| wkcc__QIWorker__c | string | Create, Filter, Group, Sort, Update | The name of the internal worker Apex class that corresponds to this job. The background process uses this class to determine how to execute this job. |