---
schema_version: "1"
id: 1bc613570bbb60b884ac63723a904ab27c5511c82240583a6f2a554c1897b6ce
title: Visitor
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_visitor.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_visitor.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ed250f9d61e530a4dabf33cdab3a5d5dc5a5e9c3f3f1237a535736e3c56878e1
description: Represents the sales reps performing visits.
---
# Visitor

Represents the sales reps performing visits.

## Special Access Rules

In Health Cloud, this object is available in API version 49.0 and later.

## Supported Calls

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

## Fields

### AssigneeId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: Lookup to the person assigned as the visitor.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Assignee
- **Relationship Type**: Master-detail
- **Refers To**:
    - Contact
    - User
    - ServiceResource

### IsPrimaryResource

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the visitor is the primary visitor for a visit.

### IsRequired

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the user is a required visitor for the 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 timestamp when the current user last viewed this record or list view. If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the visitor.

### VisitId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Lookup to the Visit record this visitor is associated with. This field is a relationship field.
- **Relationship Name**: Visit
- **Refers To**: Visit

## Associated Objects

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

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

History is available for the object.

[VisitorFeed](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)")

Feed tracking is available for the object.