---
schema_version: "1"
id: 2c35792c8dea7234e3db0aaedec25f449d4b946eb0e16a4d2f1d2b3b46c97f08
title: cgcloud__Visit_Job__c
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_cgcloud__visit_job__c.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_cgcloud__visit_job__c.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2b264ca8e005e29b250d5461923aae29085fb40299c576cc856ab9cea0eda2d5
description: This object contains answered questions and product surveys (jobs). This object is available in API version 54.0 and later.
---
# cgcloud\_\_Visit\_Job\_\_c

This object contains answered questions and product surveys (jobs). This object is available in API version 54.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user referenced this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: Most recent date on which a user viewed this record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Unique identification of the record.

### cgcloud\_\_Data\_Type\_Option\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the answer of a pick list. internally required.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Data\_Type\_Option\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Data\_Type\_Option\_\_c

### cgcloud\_\_Display\_Value\_\_c

- **Type**: string
- **Properties**: Filter, Nillable, Sort
- **Description**: If the reference Job\_Definition\_Template is of type Toggle, description of the toggle value is shown else value is shown
    
    This is a calculated field.
- **Formula**:
    
    IF(ISPICKVAL(cgcloud\_\_Job\_Definition\_Template\_\_r.cgcloud\_\_Data\_Type\_\_r.cgcloud\_\_Data\_Type\_\_c, "Toggle") ,  
    cgcloud\_\_Data\_Type\_Option\_\_r.cgcloud\_\_Description\_\_c   ,  cgcloud\_\_Value\_\_c )

### cgcloud\_\_Done\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The answer has been entered: The job will be marked as Yes.
- **Default value**: false

### cgcloud\_\_Job\_Definition\_Template\_Description\_\_c

- **Type**: string
- **Properties**: Filter, Nillable, Sort
- **Description**: Description text taken from job definition template.
    
    This is a calculated field.
- **Formula**:
    
    cgcloud\_\_Job\_Definition\_Template\_\_r.cgcloud\_\_Description\_\_c

### cgcloud\_\_Job\_Definition\_Template\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the job definition template.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Job\_Definition\_Template\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Job\_Definition\_Template\_\_c

### cgcloud\_\_Job\_Definition\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the job definition of the respective activity.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Job\_Definition\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Job\_DL\_Job\_Definition\_Template\_\_c

### cgcloud\_\_Job\_List\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to job list of a non-standard JDL
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Job\_List\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Job\_List\_\_c

### cgcloud\_\_Job\_Template\_Description\_\_c

- **Type**: string
- **Properties**: Filter, Nillable, Sort
- **Description**: Description text taken from job definition template.
    
    This is a calculated field.
- **Formula**:
    
    cgcloud\_\_Job\_Definition\_Template\_\_r.cgcloud\_\_Job\_Template\_\_r.cgcloud\_\_Description\_\_c

### cgcloud\_\_Last\_Value\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Answered value taken from the last relevant call. The Value depends on the DataType that has been specified in the job definition template.

### cgcloud\_\_Manually\_\_c

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The answer (job) has been manually added by the user.
- **Default value**: false

### cgcloud\_\_Number\_of\_Pictures\_\_c

- **Type**: double
- **Properties**: Create, Defaulted on create, Filter, Nillable, Sort, Update
- **Description**: Count of number of pictures associated with the question.

### cgcloud\_\_POS\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to POS.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_POS\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_POS\_\_c

### cgcloud\_\_Product\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Reference to the product (in case of a product related survey).
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Product\_\_r
- **Relationship Type**: Lookup
- **Refers To**: Product2

### cgcloud\_\_Promotion\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: References to the name of the promotion.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Promotion\_\_r
- **Relationship Type**: Lookup
- **Refers To**: cgcloud\_\_Promotion\_\_c

### cgcloud\_\_Target\_Value\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Stored value taken from the relevant product assortment where the product was taken from.

### cgcloud\_\_Value\_\_c

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Answered value. The value depends on the DataType that has been specified in the job. definition template.

### cgcloud\_\_Visit\_Date\_\_c

- **Type**: date
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Date of visit.

### cgcloud\_\_Visit\_\_c

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: Reference to the Visit.
    
    This is a relationship field.
- **Relationship Name**: cgcloud\_\_Visit\_\_r
- **Relationship Type**: Master-detail
- **Refers To**: Visit (Master object)

## Associated Objects

### Associated Objects

This object contains these associated objects. If the API version isn’t specified, they are available in the same API versions as this object. Otherwise, they are available in the specified API version and later.

- **[cgcloud\_\_Visit\_Job\_\_cChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")**: Change events are available for the object.
- **[cgcloud\_\_Visit\_Job\_\_cFeed](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")**: Feed tracking is available for the object.
- **[cgcloud\_\_Visit\_Job\_\_cHistory](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")**: History is available for the tracked fields of the object.
- **[cgcloud\_\_Visit\_Job\_\_cOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")**: Sharing rules are available for the object.
- **[cgcloud\_\_Visit\_Job\_\_cShare](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")**: Sharing is available for the object.