---
schema_version: "1"
id: 45cdd371c693921cfc3623ef6c77f5683ba45181601f1b303e496af90ead59bd
title: wkcc__WorkQueueItem__c
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wdc-cc-sforce-api-objects-wkc__workqueueitem__c.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-cc-sforce-api-objects-wkc__workqueueitem__c.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4f33035e9d12eeae1b860307c0b1a0df87338dda3e50d4bc106d8cf6535e9e01
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# 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.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `search()`, `undelete()`, `update()`, `upsert()`

## Fields

| 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:<ul><li>`Error`</li><li>`New`</li></ul>                                                                                                                                                                                   |
| 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.                                                                                                               |
