---
schema_version: "1"
id: 1171d4c6bd279fb801570754b30712a0e22d45a04e03fc0c0bb7de28f92ac63b
title: ConnectApi.NBAStrategyInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_n_b_a_strategy_execution.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_n_b_a_strategy_execution.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ce6881a4fb4780fdcba246456308c2193c8ff426db3af326a2fcc8a1e0f3080
description: A recommendation strategy.
---
# ConnectApi.NBAStrategyInput

A recommendation strategy.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| contextRecordId | String | ID of the context record. For example, if the next best action is on a case detail page, the ID of the case. | Optional | 45.0 |
| maxResults | Integer | Maximum number of results. Valid values are from 1 to 25. The default is 3. | Optional | 45.0 |
| strategyContext | [Map](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_map.htm#apex_methods_system_map "Contains methods for the Map collection type.")<String, String> | Variable and value mappings for the strategy. | Optional | 45.0 |
| debugTrace | Boolean | Specifies whether to return trace and debug information in the response (true) or not (false). If unspecified, the default is false. | Optional | 45.0 |