---
schema_version: "1"
id: c65f2f682511f43f46ca805d17ce6d65c29b09a56f70b0cc889148ccf5553af1
title: VisitedParty
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/sforce_api_objects_retail_visitedparty.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/sforce_api_objects_retail_visitedparty.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: be7b76d3a8d6f03d7e863050dac77a84f3428492c960fe95fbb83ced866aafe6
description: Represents the contact person at the account that’s being visited. This object is available in API version 49.0 and later.
---
# VisitedParty

Represents the contact person at the account that’s being visited. 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

### ContactId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: Lookup to the person assigned as the contact at an account. This field references the Contact object.

### IsPrimaryContact

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the person is the primary visited party.

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

### VisitId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Lookup to the Visit record this person 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.

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