---
schema_version: "1"
id: 104d3673f36a7cf0f4e879e978ea7ab866cf6b4970fffbf116260aee23c6802a
title: RecommendationResponse
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_recommendationresponse.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_recommendationresponse.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fb4b8f150074fd03f48be1ac89bc44a61685639e53155fc2e2ed09c84128eb40
description: Represents the user responses to a presented offer or recommendation for Einstein Next Best Action. This object is available in API version 51.0 and later.
---
# RecommendationResponse

Represents the user responses to a presented offer or recommendation for Einstein Next Best Action. This object is available in API version 51.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated() query(), retrieve(),

## Special Access Rules

You must have one of these user permissions to read, delete, or update recommendation responses:

- Modify All Data
- Manage Next Best Action Recommendations
- Manage Next Best Action Strategies

## Fields

| Field | Details |
| --- | --- |
| ActionReference | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

The full name of an action flow at the time of the response. The full name includes the action’s namespace.



 |
| ContextRecord | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

The ID of context record that contains the Einstein Next Best Action component. For example, if the Einstein Next Best Action component is on a case record the ContextRecord is the ID of the case record.



 |
| ContextRecordName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The name of the context record.



 |
| ContextRecordType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The name of the object that’s associated with the value stored in the ContextRecord field. For example, Account, Case, or Contact.



 |
| NetworkId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

ID of the Experience Cloud site associated with the recommendation (if applicable). This is a relationship field.

Relationship Name

Network

Relationship Type

Lookup

Refers To

Network



 |
| OnBehalfOf | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort

Description

The user ID or record that is indirectly reacting to the recommendation.



 |
| OnBehalfOfName | 

Type

string

Properties

Filter, Group, Sort

Description

Name of the value stored for OnBehalfOf at time of response.



 |
| OnBehalfOfType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The name of the object that’s associated with the value stored in the OnBehalfOf field. For example, Account, Case, or Contact.



 |
| RecommendationKey | 

Type

string

Properties

Create, Filter, Group, Sort

Description

RecommendationId if available, otherwise a generated string that represents the recommendation name.



 |
| RecommendationName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

Name of the recommendation returned from the recommendation strategy.



 |
| RecommendationType | 

Type

string

Properties

Create, Filter, Group, Sort

Description

Object type of the recommendation. It can be Recommendation or any object type mapped to the Recommendation object. For example, if you map Product to Recommendation, the RecommendationType is Product.



 |
| Response | 

Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort

Description

The user’s response to the recommendation.

Possible values are:

- Accepted
- Rejected





 |
| StrategyReference | 

Type

string

Properties

Create, Filter, Group, Sort

Description

The full name of a recommendation strategy flow at the time of the response. The response is formatted as namespace underscore prefix double underscore flowname, such as namespace\_prefix\_\_flowname.



 |
| StrategyVersion | 

Type

string

Properties

Filter, Group, Sort

Description

The recommendation strategy version that’s active at the time of the response.



 |

## Usage

The RecommendationResponse object can’t be customized with additional fields.