---
schema_version: "1"
id: 4c28b5ecdb3ca77be1fee5bc2082954748783f8f0afe85a1d73547fad4efa26d
title: AccountPlanRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_accountplanrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_accountplanrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4f7e658e4186026594ffe79b1c4af5f463ea48c8a301b5ecbab4826ecc068088
description: Represents the relationship between multiple account plans for key account management. This object is available in API version 65.0 and later.
---
# AccountPlanRelationship

Represents the relationship between multiple account plans for key account management. This object is available in API version 65.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Fields

### AccountPlanId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The primary account plan associated with a particular account plan.
    
    This field is a relationship field.
- **Relationship Name**: AccountPlan
- **Relationship Type**: Master-detail
- **Refers To**: AccountPlan (the master object)

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the account plan relationship record.

### RelatedAccountPlanId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The related account plan associated with an account plan.
    
    This field is a relationship field.
- **Relationship Name**: RelatedAccountPlan
- **Refers To**: AccountPlan

### SourceSystemIdentifier

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Nillable, Sort, Update
- **Description**: The identifier of the record in the source system.

### SourceSystemName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the system from which data is loaded into the object

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[AccountPlanRelationshipChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_change_event.htm "A StandardObjectNameChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.

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

[AccountPlanRelationshipHistory](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 tracked fields of the object.