---
schema_version: "1"
id: bd75337b5c23335ab1272b3642bb62d9afd4b734b3769f16d6324a9dc59f7d5a
title: RecommendationStrategy
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_recommendationstrategy.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_recommendationstrategy.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ef4c401bb0b845554cccb4ecd8d79861a31ce50efc346d0d2326fd158bcb231
description: Represents a recommendation strategy. Recommendation strategies are applications, similar to data flows, that determine a set of recommendations to be delivered to the client through data retrieval, branching, filtering, and logic operations. Available in API 45.0 and later.
---
# RecommendationStrategy

Represents a recommendation strategy. Recommendation strategies are applications, similar to data flows, that determine a set of recommendations to be delivered to the client through data retrieval, branching, filtering, and logic operations. Available in API 45.0 and later.

## Supported SOAP Calls

create(), delete(), query(), retrieve(), update(), upsert()

## Supported REST API HTTP Methods

DELETE, GET, HEAD, PATCH, POST

## Fields

| Field | Details |
| --- | --- |
| ContextRecordType | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The sObject type of the $Record used by the flow.



 |
| Description | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Description of the recommendation strategy.



 |
| DeveloperName | 

Type

string

Properties

Filter, Group, Sort

Description

The unique name of the recommendation strategy in the API. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s organization. Label is **Record Type Name**.



 |
| Fullname | 

Type

string

Properties

Create, Group, Nillable

Description

The full name of the associated metadata type in Metadata API. Query this field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records. This limit protects performance.



 |
| IsTemplate | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the recommendation strategy is a template (true) or not (false). When installed from managed packages, recommendation strategies can’t be viewed or cloned by subscribers because of intellectual property (IP) protection. But when those recommendation strategies are templates, subscribers can open them in a builder, clone them, and customize the clones. The default value is false. Available in API version 47.0 and later.



 |
| Label | 

Type

string

Properties

Filter, Group, Sort

Description

Required. Label for the recommendation strategy.



 |
| Language | 

Type

picklist

Properties

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

Description

The language of the recommendation strategy.



 |
| ManageableState | 

Type

ManageableState enumerated list

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Indicates the manageable state of the specified component that is contained in a package:

- beta
- deleted
- deprecated
- deprecatedEditable
- installed
- installedEditable
- released
- unmanaged





 |
| MasterLabel | 

Type

string

Properties

Filter, Group, Sort

Description

Master label for the recommendation strategy. This display value is the internal label that is not translated. Limit: 40 characters.



 |
| Metadata | 

Type

[mns: RecommendationStrategy](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_recommendationstrategy.htm "HTML (New Window)")

Properties

Create, Nillable, Update

Description

The recommendation strategy’s metadata.

Query this field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records. This limit protects performance. If the recommendation strategy is part of a managed package, this field will be Null. Metadata isn’t returned for recommendation strategies in managed packages, unless the recommendation strategies are templates.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix associated with this object. Each Developer Edition organization that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of the following values:

- In Developer Edition organizations, the namespace prefix is set to the namespace prefix of the organization for all objects that support it. There is an exception if an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition organization of the package developer.
- In organizations that are not Developer Edition organizations, NamespacePrefix is only set for objects that are part of an installed managed package. There is no namespace prefix for all other objects.





 |
| OnBehalfOfExpression | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Formula expression defining the intended target of the recommendations (for example, the Contact associated with a Case). Mainly used for reaction tracking.



 |