---
schema_version: "1"
id: e84e3492e5ddfd319cc133489b33084a838f597e6d3749483bdb169f4365684d
title: VisitedParty
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_visitedparty.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_visitedparty.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2cc55bfb0a0a769dcf328b8934ad6350a841b07f5e79cdb433b0d6caf57a6c39
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, 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.

[VisitedPartyHistory](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for the object.

[VisitedPartyFeed](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/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.