Newer Version Available

This content describes an older version of this product. View Latest

NextBestAction Class (Pilot)

Access recommendations and propositions.

Namespace

We provide Einstein Next Best Action to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Einstein Next Best Action isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. 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. You can provide feedback and suggestions for Einstein Next Best Action in the IdeaExchange.

Note

ConnectApi

NextBestActions Methods (Pilot)

The following are methods for NextBestActions. All methods are static.

getProposition(propositionId) (Pilot)

Get a proposition.

API Version

We provide Einstein Next Best Action to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Einstein Next Best Action isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. 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. You can provide feedback and suggestions for Einstein Next Best Action in the IdeaExchange.

Note

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)

Get recommendations for a strategy.

API Version

We provide Einstein Next Best Action to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Einstein Next Best Action isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. 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. You can provide feedback and suggestions for Einstein Next Best Action in the IdeaExchange.

Note

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

Type: ConnectApi.NBARecommendations

setRecommendationReaction(reaction) (Pilot)

Record user reactions to recommendations.

API Version

We provide Einstein Next Best Action to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Einstein Next Best Action isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. 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. You can provide feedback and suggestions for Einstein Next Best Action in the IdeaExchange.

Note

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