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