No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
getSuggestions(String, String, String, Boolean, Integer)
API Version
32.0
Requires Chatter
No
Signature
public static ConnectApi.QuestionAndAnswersSuggestions getSuggestions(String communityId, String q, String subjectId, Boolean includeArticles, Integer maxResults)
Parameters
- communityId
- Type: String
- Use either the ID for a community, internal, or null.
- q
- Type: String
- Required and cannot be null. Specifies the string to search. The search string must contain at least two characters, not including wildcards. See Wildcards.
- subjectId
- Type: String
- Specify a subject ID to search only questions on that object. If the ID is a topic or a user, the ID is ignored.
- includeArticles
- Type: Boolean
- Specify true to include knowledge articles in the search results. To return only questions, specify false.
- maxResults
- Type: Integer
- The maximum number of results to return for each type of item. Possible values are 1–10. The default value is 5.
Return Value
Usage
To test code that uses this method, use the matching set test method (prefix the method name with setTest). You must use the set test method with the same parameters or the code throws an exception.