---
schema_version: "1"
id: fba8e9256955a7988372b6bb678c6dfbe3816fb8ce2e5f08959e46f24fb2a5f5
title: Recommendation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_recommendation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_recommendation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 76c686056e606f42ee734022042a7d7eaf26dfd0dda68f3e518f2a89671cf3bd
description: Represents the recommendations surfaced as offers and actions for Einstein Next Best Action. This object is available in API version 45.0 and later.
---
# Recommendation

Represents the recommendations surfaced as offers and actions for Einstein Next Best Action. This object is available in API version 45.0 and later.

## Supported Calls

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

## Special Access Rules

You must have the Modify All Data or Manage Next Best Action Recommendations user permission to create and edit recommendations.

## Fields

| Field | Details |
| --- | --- |
| AcceptanceLabel | 
Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Label that appears as the accept option on the surfaced recommendation. Maximum size is 80 characters.



 |
| ActionReference | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Flow referenced for this recommendation. Label is **Action**.



 |
| Description | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Text description of the recommendation. Maximum size is 255 characters.



 |
| ExternalId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Stores an identifier for the recommendation source, such as product, so Einstein can group all responses for a given recommendation.



 |
| ImageId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Image referenced by this recommendation. Label is **Image**.

This is a relationship field.

Relationship Name

Image

Relationship Type

Lookup

Refers To

ContentAsset



 |
| IsActionActive | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the flow referenced in the Action field is active (true) or not (false). Read only.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the recommendation was last referenced.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the recommendation was last viewed.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the recommendation. Maximum size is 80 characters.



 |
| NetworkId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the Experience Cloud site associated with the recommendation (if applicable).



 |
| RecommendationKey | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Track responses to a recommendation when it doesn’t have an ID. Maximum size is 255 characters.



 |
| RejectionLabel | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

Label that appears as the reject option on the surfaced recommendation. Maximum size is 80 characters.



 |

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

[RecommendationChangeEvent](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.") (API version 48.0)

Change events are available for the object.