---
schema_version: "1"
id: 4c72c35616fe30b74ebb8eb9d66039e1af039ff356d10d9eb3bb150ec1d0827c
title: UnifiedActivityRelation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_unifiedactivityrelation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_unifiedactivityrelation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 57f6e20bcf037d7a5119e493b885b94250007ce0c56d1b8758a4f780ee362ad8
description: Represents a relationship between an activity and a related record that’s a target or topic of the activity. For example, a related record can be an opportunity, account, and so on. Available for reports and dashboards in API version 59.0 and later.
---
# UnifiedActivityRelation

Represents a relationship between an activity and a related record that’s a target or topic of the activity. For example, a related record can be an opportunity, account, and so on. Available for reports and dashboards in API version 59.0 and later.

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

We’re retiring Einstein Activity Capture Activity 360 Reporting. Starting in Summer ’25, this object isn’t available with Einstein Activity Capture 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)

## Fields

| Field | Details |
| --- | --- |
| ActivityId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the activity. This field is a polymorphic relationship field.

Relationship Name

Activity

Relationship Type

Lookup

Refers To

UnifiedActivity, UnifiedVideoCall, UnifiedVoiceCall



 |
| RelatedId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the related record. This field is a polymorphic relationship field.

Relationship Name

Related

Relationship Type

Lookup

Refers To

Account, Contact, Contract, Lead, Opportunity, User



 |