Apex Developer Guide
Newer Version Available
ConnectApi.NBARecommendation (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 |
|---|---|---|---|
| acceptanceLabel | String | Text indicating user acceptance of the recommendation. | 44.0 |
| actionReference | String | Reference to the action to perform, for example, launching a flow. | 44.0 |
| description | String | Description of the recommendation. | 44.0 |
| id | String | ID of the recommended entity. | 44.0 |
| imageUrl | String | URL to the asset file to display. | 44.0 |
| name | String | Name of the recommended entity. | 44.0 |
| rejectionLabel | String | Text indicating user rejection of the recommendation. | 44.0 |
| target | ConnectApi.AbstractNBATarget | Target to act on. | 44.0 |
| targetAction | ConnectApi.AbstractNBAAction | Action to recommend. | 44.0 |
| url | String | URL to the recommended entity. | 44.0 |