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.AudienceInput

A personalization audience.
Property Type Description Required or Optional Available Version
criteria List<ConnectApi.​AudienceCriterion​Input> List of audience criteria to update or add. An audience can have up to 100 criteria. Required when creating an audience

Optional when updating an audience

48.0
customFormula String Custom formula for the audience criteria. For example, (1 AND 2) OR 3. Required when creating an audience with the formulaFilterType set to CustomLogicMatches

Optional, otherwise

48.0
formulaFilterType ConnectApi.​FormulaFilterType Formula filter type for the personalization audience. Values are:
  • AllCriteriaMatch—All audience criteria are true (AND operation).
  • AnyCriterionMatches—Any audience criterion is true (OR operation).
  • CustomLogicMatches—Audience criteria match the custom formula (for example, (1 AND 2) OR 3).
Required when creating an audience

Optional when updating an audience

48.0
name String Name of the audience. Required when creating an audience

Optional when updating an audience

48.0