---
schema_version: "1"
id: b2b60d60cf301b0159493bfa3557798a11525569aa2db29992316d7b906db2b0
title: PartnerNetworkConnection
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_partnernetworkconnection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_partnernetworkconnection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d14f8424a99a51ac1b6a624afc6db1d30a3e153e933924e631e8cee443ba2be2
description: Represents a Salesforce to Salesforce connection between Salesforce organizations.
---
# PartnerNetworkConnection

Represents a Salesforce to Salesforce connection between Salesforce organizations.

## Supported Calls

create(), describeSObjects(), query(), retrieve()

## Special Access Rules

As of Winter ’21 and later, only authenticated internal and external users can access this object.

## Fields

| Field | Details |
| --- | --- |
| AccountId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the Account associated with this connection.



 |
| ConnectionName | 

Type

string

Properties

Filter, idLookup, Sort

Description

A descriptive name for the connection. Limit: 295 characters.



 |
| ConnectionStatus | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The status of the Salesforce to Salesforce connection. The picklist includes the following values:

- Sent
- Received
- Pending
- Accepted
- Rejected
- Inactive
- Disconnecting
- ConnectionSuspended
- SubscribeInProgress
- UsersInitialSync
- BulkSyncMetadata





 |
| ConnectionType | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

The type of Salesforce to Salesforce connection. The picklist includes the following values:

- Standard
- Replication

This field is available in API version 30.0 and later.



 |
| ContactId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the Contact associated with this connection.



 |
| IsSyncAuditFields | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Specifies whether audit fields are synced between the primary and secondary organization in a replication connection. This field is available in API version 32.0 and later, and is only accessible in Salesforce organizations where Organization Sync is enabled.



 |
| IsSyncMetadata | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Specifies whether supported types of metadata are synced from the primary to the secondary organization in a replication connection. This field is available in API version 33.0 and later, and is only accessible in Salesforce organizations where Organization Sync is enabled.



 |
| IsSyncUsers | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Specifies whether users with standard Salesforce user licenses are synced between the primary and secondary organization in a replication connection. This field is available in API version 35.0 and later, and is only accessible in Salesforce organizations where Organization Sync is enabled.



 |
| PrimaryContactId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the User associated with this connection.



 |
| ReplicationRole | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The role of this Salesforce organization in the replication connection. The picklist includes the following values:

- Primary
- Secondary

This field is available in API version 30.0 and later, and is only accessible in Salesforce organizations where Organization Sync is enabled.



 |
| ResponseDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time that the connection was accepted or rejected.



 |

## Usage

Represents Salesforce to Salesforce standard and replication connections. This object is referenced by all objects that have been shared with other organizations, enabling you to determine which connections shared a record with you. If the organization does not have Salesforce to Salesforce enabled, the PartnerNetworkConnection object is not available, and you can’t access it via the API.

#### See Also

- [PartnerNetworkRecordConnection](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_partnernetworkrecordconnection.htm "Represents a record shared between Salesforce organizations using Salesforce to Salesforce.")