---
schema_version: "1"
id: 63cbedf3434129b606ba5036c709c069683aeec3dc89ee84ddf2e962ebe1f35a
title: Visit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_visit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_visit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c8d7edfe7101f92c3fe06e12dc67b8d9017a0a8ecd4d9664d250aa110b4fb49c
description: Track information related to a field rep’s visit to a health care provider.
---
# Visit

Track information related to a field rep’s visit to a health care provider.

## Special Access Rules

In Health Cloud, this object is available in API version 47.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 that is associated with a visit.
    
    In Health Cloud, this field is available in the Account Management feature.
- **Relationship Name**: Account
- **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.

### InstructionDescription

- **Type**: textarea
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Special instructions provided by a sales manager or an admin that a sales rep 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.

### 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.

### PlaceId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: ID of the location that sales reps visit.
    
    In Health Cloud, this field is available in the Account Management feature.
- **Relationship Name**: Place
- **Refers To**: Address, ContactPointAddress, Location, RetailStore

### 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.
    
    In Health Cloud, this field is available in the Account Management feature.

### Start Geolocation Missing Reason

- **Type**: staticenum
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: The reason why geolocation was not captured at the start of the visit. Possible values:
    - Device Restricted
    - User Restricted
    - Offline
    - Bad Conectivity

### Status

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: The status of a visit.
    
    In Health Cloud, this field is available in the Account Management feature.
- **Default value**: Planned
- **Possible values**:
    - Abandoned
    - Completed
    - InProgress
    - Planned

### StatusRemarks

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

### VisitPriority

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

### VisitorId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: ID of the sales representative visiting the store.

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

- [VisitShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_share.htm "HTML (New Window)")
- [VisitFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_feed.htm "HTML (New Window)")