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

Represents the sales reps performing visits.

## 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.
    
    Such as the employee attending the visit with the field user.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Assignee
- **Relationship Type**: Master-detail
- **Refers To**:
    - Contact
    - User

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