---
schema_version: "1"
id: 2b14470240f0356967412b8420ce2f74d9d607f35b34761df1fc45cf32df48cf
title: ExtDataShare
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_extdatashare.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_extdatashare.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 45486323300dac89e8577740edebaca88df823a8cebc0b7230546b43cbc26a8d
description: Represents a data share, which is a collection of Data Cloud objects that can be shared with other Data Cloud orgs or third-party partners. This object is available in API version 56.0 and later.
---
# ExtDataShare

Represents a data share, which is a collection of Data Cloud objects that can be shared with other Data Cloud orgs or third-party partners. This object is available in API version 56.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| DataShareType | 
Type

picklist

Properties

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

Description

The type of data share, indicating the direction of data flow. If Outbound, the data share was created on this Data Cloud org and is shared to third-party partners or with another Data Cloud org. If Inbound, the data share comes from another Data Cloud org and is shared to this Data Cloud org.

Possible values are:

- Inbound
- Outbound

The default value is Outbound.



 |
| DataSpaceId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The ID of the data space under which the data share was created.

This field is a relationship field.

Relationship Name

DataSpace

Refers To

DataSpace



 |
| InboundDataShareName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

The name of the data share in the source Data Cloud org.



 |
| InboundDataShareOrgIdentifier | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

The ID of the source Data Cloud org that shared a data share with the target org.



 |
| 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.

If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.





 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the data share.



 |
| ObjectCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of Data Cloud objects added to this data share.



 |

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

[ExtDataShareChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent 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.

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

[ExtDataShareHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/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 tracked fields of the object.

[ExtDataShareOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[ExtDataShareShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.

#### See Also

- [_Salesforce Help_: Create a Data Stream](https://help.salesforce.com/s/articleView?id=data.c360_a_create_data_shares.htm&language=en_US "
    Salesforce Help: Create a Data Stream  - HTML (New Window)")