---
schema_version: "1"
id: ac2dd5d364bc0420ba09ad9b98e59b4602bf3eed23124ffed98f65d1e4d6dd1f
title: Visitor
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_retail_visitor.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_retail_visitor.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 25d4e7330dfe00323f2a48bf6ee2956c5a7e14f2bafd53dbe4455985de69a8cb
description: Represents the sales reps performing visits. This object is available in API version 49.0 and later.
---
# Visitor

Represents the sales reps performing visits. 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 fields references the User, ServiceResource, and Contact objects.

### 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 most recent date on which a user viewed this record.

### Name

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

### VisitId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Lookup to the Visit record this visitor is associated with.

## Associated Objects

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

- **[VisitorFeed](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.