Apex Developer Guide
Newer Version Available
ConnectApi.NBAReaction (Pilot)
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
| Property Name | Type | Description | Available Version |
|---|---|---|---|
| contextRecord | ConnectApi.Reference | Reference to the context record. | 43.0 |
| createdBy | ConnectApi.Reference | Reference to the reaction creator. | 43.0 |
| createdDate | Datetime | Reaction creation date. | 43.0 |
| id | String | Reaction record ID. | 43.0 |
| onBehalfOf | ConnectApi.Reference | Reference to the user or record that is indirectly reacting to the recommendation. | 43.0 |
| reactionType | ConnectApi.NBAReactionType | Type of reaction to a recommendation.
Values are:
|
43.0 |
| strategy | ConnectApi.RecordSnapshot | Strategy that recommended the target record. | 43.0 |
| targetAction | ConnectApi.RecordSnapshot | Target action that is recommended. | 43.0 |
| targetRecord | ConnectApi.Reference | Reference to the target record. | 43.0 |