---
schema_version: "1"
id: c081d8ff9474d125965a056747f00fbc22945a614ddbecce271da78fa714f8f0
title: ConnectApi.RecommendationDefinition
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_recommendation_definition.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_recommendation_definition.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 41f96ca3c5845a56f359e7e133314d0b8798c023d63bc8b12b88e674d5f4ce88
description: Represents a custom recommendation definition.
---
# ConnectApi.RecommendationDefinition

Represents a custom recommendation definition.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| actionUrl | String | The URL for acting on this custom recommendation. | 35.0 |
| actionUrlName | String | The text label for the action URL in the user interface. | 35.0 |
| explanation | String | Explanation of the custom recommendation definition. | 35.0 |
| id | String | 18-character ID of the custom recommendation definition. | 35.0 |
| name | String | Name of the custom recommendation definition. The name is displayed in Setup. | 35.0 |
| photo | [ConnectApi.Photo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_photo.htm#apex_connectapi_output_photo "Profile photo.") | Photo of the custom recommendation definition. | 35.0 |
| title | String | Title of the custom recommendation definition. | 35.0 |
| url | String | URL to the Connect REST API resource for the custom recommendation definition. | 35.0 |

#### See Also

- [ConnectApi.RecommendationDefinitionPage](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_recommendation_definition_collection.htm "A list of custom recommendation definitions.")
- [ConnectApi.ScheduledRecommendation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_scheduled_recommendation.htm "Represents a scheduled custom recommendation.")