Apex Reference Guide
Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, 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.
ConnectApi.RecommendationAudienceInput
| Property | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| criteria | ConnectApi.AudienceCriteriaInput | The criteria for the custom recommendation audience type. | Optional If not specified when creating a recommendation audience, the audience criteria type defaults to custom list. |
36.0 |
| memberOperationType | ConnectApi.RecommendationAudienceMemberOperationType | The operation to carry out on the audience members. Important: This property is available
only in version 35.0. In version 36.0 and later, use ConnectApi.CustomListAudienceCriteriaInput.
|
Required to update a recommendation audience Don’t use or specify null to create a recommendation audience |
35.0 only |
| members | List<String> | A collection of user IDs. Important: This property is available only in version 35.0. In
version 36.0 and later, use ConnectApi.CustomListAudienceCriteriaInput. When updating an audience, you can include up to 100 members. An audience can have up to 100,000 members, and each Experience Cloud site can have up to 100 audiences. |
Required to update a recommendation audience Don’t use or specify null to create a recommendation audience |
35.0 only |
| name | String | The unique name of the custom recommendation audience. | Optional to update a recommendation audience Required to create a recommendation audience |
35.0 |