---
schema_version: "1"
id: 53c2ad6456287432db8e69a87cad24fc00b7a463e3a80bd60163882247033711
title: UnifiedEmail
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_unifiedemail.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_unifiedemail.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fbdbf91a2fc437250a438808129cfbe8a5b0b31572be7289be7a5a931edd12c3
description: Represents an email that was captured or synced from an EmailMessage or Task record. Available for reports and dashboards in API version 59.0 and later.
---
# UnifiedEmail

Represents an email that was captured or synced from an EmailMessage or Task record. Available for reports and dashboards in API version 59.0 and later.

![Important](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note_important.png)

#### Important

Starting in Summer ’25, this object isn’t available unless Activity 360 Reporting was enabled in your org in Spring ’25 or earlier. See Knowledge Article: [Einstein Activity Capture Activity 360 Reporting, Activity Metrics, Activities Dashboard Upcoming Retirement](https://help.salesforce.com/s/articleView?id=004633781&type=1&language=en_US)

## Supported Calls

describeSObjects(), query(), retrieve()

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

This object is available only for reporting. It isn’t supported for SOQL queries and APIs.

## Special Access Rules

Einstein Activity Capture and Activity 360 Reporting must be enabled.

## Fields

| Field | Details |
| --- | --- |
| ActivityDateTime | 
Type

dateTime

Properties

Filter, Sort

Description

The date and time of the email in the Coordinated Universal Time (UTC) time zone.



 |
| ActivitySubType | 

Type

picklist

Properties

Filter, Nillable, Restricted picklist

Description

Always blank for this object.



 |
| ActivityType | 

Type

picklist

Properties

Filter, Nillable, Restricted picklist

Description

The type of activity.

Possible value is UnifiedEmail.



 |
| DetailId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the object that contains detailed activity-specific information. The object depends on the activity type. For example, the detail for a Task activity is a Task object. The detail for an Event activity is an Event object. If the email was captured from Einstein Activity Capture, this field returns a blank value.

This field is a relationship field.

Relationship Name

Detail

Relationship Type

Lookup

Refers To

EmailMessage



 |
| Direction | 

Type

picklist

Properties

Filter, Nillable, Restricted picklist

Description

The direction in which the email was sent or received.

Possible values are:

- Inbound
- Internal
- Outbound





 |
| InternalEventKey | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Reserved for internal use.



 |
| IsInsightAvailable | 

Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the activity has an insight associated with it (true) or not (false).

The default value is false.



 |
| IsPrivate | 

Type

boolean

Properties

Defaulted on create Filter

Description

Indicates whether the activity's sensitive fields (Subject and Snippet) are masked (true) or visible (false) for non-owners.

The default value is false.



 |
| Snippet | 

Type

string

Properties

Nillable

Description

An abbreviation of the email content. This field has a maximum length of 255 characters.



 |
| Subject | 

Type

string

Properties

None

Description

Contains the subject of the email.



 |