The following are methods for Recommendations. All methods are static.
35.0
No
public static ConnectApi.RecommendationAudience createRecommendationAudience(String communityId, ConnectApi.RecommendationAudienceInput recommendationAudience)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationAudience createRecommendationAudience(String communityId, String name)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationDefinition createRecommendationDefinition(String communityId, ConnectApi.RecommendationDefinitionInput recommendationDefinition)
Recommendation definitions allow you to create custom recommendations that appear in communities, encouraging users to watch videos, take training and more.
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
These recommendations appear by default on the Customer Service template. They appear on the community home and question detail pages and in the feed in communities in Salesforce mobile web. They also appear anywhere community managers add recommendations using Experience Builder in communities using the Customer Service template.
35.0
No
public static ConnectApi.RecommendationDefinition createRecommendationDefinition(String communityId, String name, String title, String actionUrl, String actionUrlName, String explanation)
Recommendation definitions allow you to create custom recommendations that appear in communities, encouraging users to watch videos, take training and more.
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
These recommendations appear by default on the Customer Service template. They appear on the community home and question detail pages and in the feed in communities in Salesforce mobile web. They also appear anywhere community managers add recommendations using Experience Builder in communities using the Customer Service template.
35.0
No
public static ConnectApi.ScheduledRecommendation createScheduledRecommendation(String communityId, ConnectApi.ScheduledRecommendationInput scheduledRecommendation)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
36.0
No
public static ConnectApi.ScheduledRecommendation createScheduledRecommendation(String communityId, String recommendationDefinitionId, Integer rank, Boolean enabled, String recommendationAudienceId, ConnectApi.RecommendationChannel channel)
Setting the rank is comparable to an insertion into an ordered list. The scheduled custom recommendation is inserted into the position specified by the rank. The rank of all the scheduled custom recommendations after it is pushed down. See Ranking scheduled custom recommendations example.
If the specified rank is larger than the size of the list, the scheduled custom recommendation is put at the end of the list. The rank of the scheduled custom recommendation is the size of the list, instead of the one specified.
If a rank is not specified, the scheduled custom recommendation is put at the end of the list.
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
If you have these scheduled custom recommendations:
Scheduled Recommendations | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationB | 2 |
ScheduledRecommendationC | 3 |
And you include this information in the Scheduled Custom Recommendation Input:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationD | 2 |
The result is:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationD | 2 |
ScheduledRecommendationB | 3 |
ScheduledRecommendationC | 4 |
35.0
No
public static Void deleteRecommendationAudience(String communityId, String recommendationAudienceId)
Type: Void
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static Void deleteRecommendationDefinition(String communityId, String recommendationDefinitionId)
Type: Void
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static Void deleteRecommendationDefinitionPhoto(String communityId, String recommendationDefinitionId)
Type: Void
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static Void deleteScheduledRecommendation(String communityId, String scheduledRecommendationId, Boolean deleteDefinitionIfLast)
Type: Void
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
Deleting a scheduled custom recommendation is comparable to a deletion in an ordered list. All scheduled custom recommendations after the deleted scheduled custom recommendation receive a new, higher rank automatically.
35.0
No
public static ConnectApi.RecommendationAudience getRecommendationAudience(String communityId, String recommendationAudienceId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.UserReferencePage getRecommendationAudienceMembership(String communityId, String recommendationAudienceId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.UserReferencePage getRecommendationAudienceMembership(String communityId, String recommendationAudienceId, Integer pageParam, Integer pageSize)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationAudiencePage getRecommendationAudiences(String communityId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationAudiencePage getRecommendationAudiences(String communityId, Integer pageParam, Integer pageSize)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationDefinition getRecommendationDefinition(String communityId, String recommendationDefinitionId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static ConnectApi.Photo getRecommendationDefinitionPhoto(String communityId, String recommendationDefinitionId)
Type: ConnectApi.Photo
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationDefinitionPage getRecommendationDefinitions(String communityId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
33.0
Yes
public static ConnectApi.RecommendationCollection getRecommendationForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectId)
36.0
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
36.0
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
36.0
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectCategory, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
35.0
No
public static ConnectApi.ScheduledRecommendation getScheduledRecommendation(String communityId, String scheduledRecommendationId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
36.0
No
public static ConnectApi.ScheduledRecommendationPage getScheduledRecommendations(String communityId, ConnectApi.RecommendationChannel channel)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
33.0
Yes
public static rejectRecommendationForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectId)
Type: Void
34.0
Yes
public static rejectRecommendationForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, ConnectApi.RecommendedObjectType objectEnum)
Type: Void
35.0
No
public static ConnectApi.RecommendationAudience updateRecommendationAudience(String communityId, String recommendationAudienceId, ConnectApi.RecommendationAudienceInput recommendationAudience)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationDefinition updateRecommendationDefinition(String communityId, String recommendationDefinitionId, String name, String title, String actionUrl, String actionUrlName, String explanation recommendationDefinition)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.RecommendationDefinition updateRecommendationDefinition(String communityId, String recommendationDefinitionId, ConnectApi.RecommendationDefinitionInput recommendationDefinition)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static ConnectApi.Photo updateRecommendationDefinitionPhoto(String communityId, String recommendationDefinitionId, ConnectApi.BinaryInput fileUpload)
Type: ConnectApi.Photo
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static ConnectApi.Photo updateRecommendationDefinitionPhoto(String communityId, String recommendationDefinitionId, String fileId, Integer versionNumber)
Type: ConnectApi.Photo
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static ConnectApi.Photo updateRecommendationDefinitionPhotoWithAttributes(String communityId, String recommendationDefinitionId, ConnectApi.PhotoInput photo)
Type: ConnectApi.Photo
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
Yes
public static ConnectApi.Photo updateRecommendationDefinitionPhotoWithAttributes(String communityId, String recommendationDefinitionId, ConnectApi.PhotoInput photo, ConnectApi.BinaryInput fileUpload)
Type: ConnectApi.Photo
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
35.0
No
public static ConnectApi.ScheduledRecommendation updateScheduledRecommendation(String communityId, String scheduledRecommendationId, ConnectApi.ScheduledRecommendationInput scheduledRecommendation)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
If you have these scheduled custom recommendations:
Scheduled Recommendations | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationB | 2 |
ScheduledRecommendationC | 3 |
And you include this information in the Scheduled Custom Recommendation Input:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationD | 2 |
The result is:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationD | 2 |
ScheduledRecommendationB | 3 |
ScheduledRecommendationC | 4 |
35.0
No
public static ConnectApi.ScheduledRecommendation updateScheduledRecommendation(String communityId, String scheduledRecommendationId, Integer rank, Boolean enabled, String recommendationAudienceId)
Setting the rank is comparable to an insertion into an ordered list. The scheduled custom recommendation is inserted into the position specified by the rank. The rank of all the scheduled custom recommendations after it is pushed down. See Ranking scheduled custom recommendations example.
If the specified rank is larger than the size of the list, the scheduled custom recommendation is put at the end of the list. The rank of the scheduled custom recommendation is the size of the list, instead of the one specified.
If a rank is not specified, the scheduled custom recommendation is put at the end of the list.
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
If you have these scheduled custom recommendations:
Scheduled Recommendations | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationB | 2 |
ScheduledRecommendationC | 3 |
And you include this information in the Scheduled Custom Recommendation Input:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationD | 2 |
The result is:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationD | 2 |
ScheduledRecommendationB | 3 |
ScheduledRecommendationC | 4 |
The following are the test methods for Recommendations. All methods are static.
For information about using these methods to test your ConnectApi code, see Testing ConnectApi Code.
33.0
Yes
public static Void setTestGetRecommendationForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectId, ConnectApi.RecommendationCollection result)
Type: Void
36.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void
36.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void
36.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectCategory, ConnectApi.RecommendationActionType contextAction, String contextObjectId, ConnectApi.RecommendationChannel channel, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void
The following methods for Recommendations are retired.
No
public static ConnectApi.ScheduledRecommendation createScheduledRecommendation(String communityId, String recommendationDefinitionId, Integer rank, Boolean enabled, String recommendationAudienceId)
Setting the rank is comparable to an insertion into an ordered list. The scheduled custom recommendation is inserted into the position specified by the rank. The rank of all the scheduled custom recommendations after it is pushed down. See Ranking scheduled custom recommendations example.
If the specified rank is larger than the size of the list, the scheduled custom recommendation is put at the end of the list. The rank of the scheduled custom recommendation is the size of the list, instead of the one specified.
If a rank is not specified, the scheduled custom recommendation is put at the end of the list.
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
If you have these scheduled custom recommendations:
Scheduled Recommendations | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationB | 2 |
ScheduledRecommendationC | 3 |
And you include this information in the Scheduled Custom Recommendation Input:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationD | 2 |
The result is:
Scheduled Recommendation | Rank |
---|---|
ScheduledRecommendationA | 1 |
ScheduledRecommendationD | 2 |
ScheduledRecommendationB | 3 |
ScheduledRecommendationC | 4 |
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
Yes
public static ConnectApi.RecommendationCollection getRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectCategory, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults)
If you want to get recommendations based on a recent action performed, such as following a user, use contextAction and contextObjectId together. For example, if you just followed Pam, you specify follow for contextAction and Pam’s user ID for contextObjectId.
This method only recommends users who are followed by people who
follow Pam. In this example, John follows Pam so the method returns a recommendation for you
to follow Suzanne since John also follows Suzanne.
To test code that uses this method, use the matching set test method (prefix the method name with setTest). Use the set test method with the same parameters or the code throws an exception.
No
public static ConnectApi.ScheduledRecommendationPage getScheduledRecommendations(String communityId)
Community managers can access, create, and delete audiences, definitions, and schedules for custom community recommendations. (Community managers are users with the Create and Set Up Communities or Manage Communities permission.) Users with the Modify All Data permission can also access, create, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
33.0–35.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void
33.0–35.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void
33.0–35.0
Yes
public static Void setTestGetRecommendationsForUser(String communityId, String userId, ConnectApi.RecommendationActionType action, String objectCategory, ConnectApi.RecommendationActionType contextAction, String contextObjectId, Integer maxResults, ConnectApi.RecommendationCollection result)
Type: Void