---
schema_version: "1"
id: a119f3877f8d280542f91110a36b0fd7d71b416bcb42b3587df8b07178b88de6
title: Visit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_visit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_visit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a75f567f063046b3ebcfd70ff1da56ac0beb3f1ce9b84f5aae1c95233ff3e4c4
description: Represents information about a visit that a manager schedules for a field rep to perform, usually at dealer locations. This object is available in Automotive Cloud in API version 56.0 and later.
---
# Visit

Represents information about a visit that a manager schedules for a field rep to perform, usually at dealer locations. This object is available in Automotive Cloud in API version 56.0 and later.

## Supported Calls

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

## Fields

### AccountId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The account associated with the visit. This field is a relationship field.
- **Relationship Name**: Account
- **Relationship Type**: Lookup
- **Refers To**: Account

### ActualVisitEndTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time when the visit ended.

### ActualVisitStartTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time when the visit started.

### AddressId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The address associated with the visit. This field is a relationship field.
- **Relationship Name**: Address
- **Relationship Type**: Lookup
- **Refers To**: Address

### ContactId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The contact associated with the visit. This field is a relationship field.
- **Relationship Name**: Contact
- **Relationship Type**: Lookup
- **Refers To**: Contact

### ContextId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The purpose of the visit. This field is a polymorphic relationship field.
- **Relationship Name**: Context
- **Relationship Type**: Lookup
- **Refers To**: Account\_\_c, Case

### InstructionDescription

- **Type**: textarea
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Special instructions provided by a manager that the visitor refers to during a visit.

### LastReferencedDate

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

### LastViewedDate

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

### LocationId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The location of the dealer or partner where the visit must be conducted. This field is a relationship field.
- **Relationship Name**: Location
- **Relationship Type**: Lookup
- **Refers To**: Location

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Unique identifier for the visit record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the visit record owner. This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Relationship Type**: Lookup
- **Refers To**: Group, User

### PlaceId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: ID of the place that the visitor visits. This field is a polymorphic relationship field.
- **Relationship Name**: Place
- **Relationship Type**: Lookup
- **Refers To**: Address, Location

### PlannedVisitEndTime

- **Type**: dateTime
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The date and time when the visit is expected to end.

### PlannedVisitStartTime

- **Type**: dateTime
- **Properties**: Create, Filter, Sort, Update
- **Description**: The date and time when the visit is expected to start.

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: The status of the visit. Visitors can’t edit this field. Possible values are: The default value is Planned.

- Abandoned
- Completed
- Error
- InProgress—In Progress
- None
- Planned
- Unscheduled

### StatusRemarks

- **Type**: textarea
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The reasons for abandoning or completing the visit as provided by the visitor.

### UserId

- **Type**: reference
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The user associated with the visit. This field is a relationship field.
- **Relationship Name**: User
- **Relationship Type**: Lookup
- **Refers To**: User

### VisitPriority

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The priority of the visit. Possible values are: High, Low, or Medium.

### VisitTypeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The type of visit such as inspection type, or work type. This field is a polymorphic relationship field.
- **Relationship Name**: VisitType
- **Relationship Type**: Lookup
- **Refers To**: WorkType

### VisitorId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the person visiting the place. This field is a polymorphic relationship field.
- **Relationship Name**: Visitor
- **Relationship Type**: Lookup
- **Refers To**: Contact, ServiceResource, User

## Associated Objects

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

- [VisitFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.
- [VisitHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.
- [VisitOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_ownersharingrule.htm): Sharing rules are available for the object.
- [VisitShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_share.htm): Sharing is available for the object.