---
schema_version: "1"
id: 071d8693d843fa9011ad58bf156afebf0d132d7b49e5534ed22c5e2644376424
title: OpportunityInsight
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_opportunityinsight.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_opportunityinsight.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f9c9539a87b6504199490ef95a820c5b29004f18abee6fc59731b81303a7073e
description: Represents an individual insight (deal prediction, follow-up reminder, or key moment) related to an opportunity record.
---
# OpportunityInsight

Represents an individual insight (deal prediction, follow-up reminder, or key moment) related to an opportunity record.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), query(), retrieve()

## Special Access Rules

To see an insight related to a specific opportunity, users need a Sales Cloud Einstein license and access to the opportunity record. As of the Spring ’20 release, Pardot and Sales Engagement users no longer have access to this object.

## Fields

| Field Name | Details |
| --- | --- |
| ActualHeardWithinDays | 
Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of days it has been since a prospect has responded for insights of type Prospect has not responded and No communication.



 |
| CloseDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The close date of the related opportunity for insights of type Opportunity is overdue and Opportunity is unlikely to close in time.



 |
| CompetitorName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

This field has been deprecated as of API version 45.0.



 |
| ContactName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

This field is not in use as of API version 46.0.



 |
| ContactTitle | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

This field is not in use as of API version 46.0.



 |
| CurrencyIsoCode | 

Type

picklist

Properties

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

Description

Available only for orgs with the multicurrency feature enabled. Contains the ISO code for any currency allowed by the organization.



 |
| Division | 

Type

picklist

Properties

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

Description

The division of the related record.



 |
| ExpectedHeardWithinDays | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The expected number of days it takes to hear back from a prospect for insights of type Prospect has not responded and No communication.



 |
| LastHeard | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date when the related prospect was last heard from for insights of type Prospect has not responded.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last interacted with this record, directly or indirectly.



 |
| 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, it's possible that the user only accessed this record or list view (LastReferencedDate), but not viewed it.



 |
| OpportunityId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the related opportunity record.



 |
| Rationale | 

Type

string

Properties

Filter, Group, Nillable

Description

The explanation for an insight, providing more background information and details that are specific to the org.



 |
| Reason | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The reason why a specific insight type is appearing. Relevant to the following insights:

- Opportunity is unlikely to close in time
- Opportunity slowing
- Opportunity boosting
- Time-consuming opportunity





 |
| TaskDue | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date that a task associated with the related opportunity record is due.



 |
| Title | 

Type

string

Properties

Filter, Group, Nillable

Description

The title of the insight.



 |
| TrendType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The trend type of the insight. Possible values include:

- Negative
- Positive
- Informational





 |
| Type | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of insight. Possible values include:

- Opportunity is unlikely to close in time
- Prospect has not responded
- Opportunity slowing
- Opportunity boosting
- Time-consuming opportunity
- No communication
- Re-engaged opportunity
- Opportunity has an overdue task
- Opportunity is overdue
- Opportunity has no open activity
- Unusual opportunity amount





 |

## Usage

This object is read-only and isn’t supported in workflows, triggers, or process builder.