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

Target to create.
Property Type Description Required or Optional Available Version
audienceId String ID of the audience to assign to the target. Required 48.0
groupName String Group name of the target. Groups bundle related target and audience pairs. You can have up to 2,000 groups and 500 targets per group. To determine the group name for targets of type ExperienceVariation, see Personalization Target Developer and Group Names in the Experience Cloud Developer Guide. Required 48.0
priority Integer Priority of the target. Within a group, priority determines which target is returned if the user matches more than one audience. Optional 48.0
publishStatus ConnectApi.​PublishStatus The publish status of the target. Values are:
  • Draft
  • Live
We recommend setting the publish status to Draft. If you specify Live, your changes revert after you publish the site.
Optional 48.0
targetType String Type of target, indicating the nature of the data being targeted. Supported values include:
  • Draft
  • Live

You can have up to 2,500 ExperienceVariation targets and 25,000 record targets.

Required 48.0
targetValue String Value of the target. If targetType is ExperienceVariation, targetValue is the developer name of the experience variation. If targetType is CustomObjectName__c, targetValue is the ID of the custom object. To determine the developer name for targets of type ExperienceVariation, see Personalization Target Developer and Group Names in the Experience Cloud Developer Guide. Required 48.0