Newer Version Available
NextBestAction Class (Pilot)
Access recommendations and propositions.
Namespace
NextBestActions Methods (Pilot)
The following are methods for NextBestActions.
All methods are static.
getProposition(propositionId) (Pilot)
API Version
43.0
Requires Chatter
No
Signature
public static ConnectApi.Proposition getProposition(String propositionId)
Parameters
- propositionId
- Type: String
- ID of the proposition.
Return Value
Type: ConnectApi.Proposition
getRecommendations(strategyName, maxResults, contextRecordId) (Pilot)
API Version
43.0
Requires Chatter
No
Signature
public static ConnectApi.NBARecommendations getRecommendations(String strategyName, Integer maxResults, String contextRecordId)
Parameters
- strategyName
- Type: String
- Name of the strategy.
- maxResults
- Type: Integer
- Maximum number of results. Valid values are from 1 to 25. If unspecified, the default value is 3.
- contextRecordId
- Type: String
- ID of the context record. For example, if the next best action is on a case detail page, the ID of the case.
Return Value
setRecommendationReaction(reaction) (Pilot)
API Version
43.0
Requires Chatter
No
Signature
public static ConnectApi.NBAReaction setRecommendationReaction(ConnectApi.NBAReactionInput reaction)
Parameters
- reaction
- Type: ConnectApi.NBAReactionInput
- A ConnectApi.NBAReactionInput object representing a reaction to a recommendation produced by a recommendation strategy.
Return Value
Type: ConnectApi.NBAReaction