Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ConnectApi.ScheduledRecommendationInput
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| channel | ConnectApi.RecommendationChannel | A way to tie custom recommendations together. For example, display
recommendations in specific places in the UI or show recommendations based on time
of day or geographic locations. Values are:
|
Optional for creating a scheduled recommendation If not specified, defaults to DefaultChannel. Don’t use when updating a scheduled recommendation |
36.0 |
| enabled | Boolean | Indicates whether scheduling is enabled. If true, the custom recommendation is enabled and appears in Experience Cloud sites. If false, custom recommendations in feeds in Salesforce mobile web aren’t removed, but no new custom recommendations appear. In Customer Service and Partner Central sites, disabled custom recommendations no longer appear. | Optional | 35.0 |
| rank | Integer | Relative rank of the scheduled custom recommendation indicated by ascending whole numbers starting with 1. Setting the rank is comparable to an insertion into an ordered list. The scheduled custom recommendation is inserted into the position specified by the rank. The rank of all the scheduled custom recommendations after it is pushed down. See Ranking scheduled custom recommendations example. If the specified rank is larger than the size of the list, the scheduled custom recommendation is put at the end of the list. The rank of the scheduled custom recommendation is the size of the list, instead of the one specified. If a rank is not specified, the scheduled custom recommendation is put at the end of the list. |
Optional | 35.0 |
| recommendationAudienceId | String | ID of the audience for this scheduled custom recommendation.When updating a scheduled custom recommendation, specify ALL to remove the association between a custom recommendation audience and a scheduled custom recommendation. | Optional | 35.0 |
| recommendationDefinitionId | String | ID of the custom recommendation definition that this scheduled recommendation schedules. | Required to create a scheduled recommendation You can’t specify a recommendationDefinitionId when updating a scheduled recommendation. |
35.0 |
Ranking scheduled custom recommendations example
If you have these scheduled custom recommendations:
| Scheduled Recommendations | Rank |
|---|---|
| ScheduledRecommendationA | 1 |
| ScheduledRecommendationB | 2 |
| ScheduledRecommendationC | 3 |
And you include this information in the Scheduled Custom Recommendation Input:
| Scheduled Recommendation | Rank |
|---|---|
| ScheduledRecommendationD | 2 |
The result is:
| Scheduled Recommendation | Rank |
|---|---|
| ScheduledRecommendationA | 1 |
| ScheduledRecommendationD | 2 |
| ScheduledRecommendationB | 3 |
| ScheduledRecommendationC | 4 |