Newer Version Available

This content describes an older version of this product. View Latest

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. We recommend a maximum of 50 targets per group. 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 community.
Optional 48.0
targetType String Type of target, indicating the nature of the data being targeted. Supported values include:
  • ExperienceVariation (version 48.0 and later)
  • Custom object API names, such as CustomObjectName__c (version 48.0 and later)
  • NavigationLinkSet (version 49.0 and later)
  • Topic (version 49.0 and later)
  • CollaborationGroup (version 49.0 and later)
  • KnowledgeArticle (version 49.0 and later)
  • ContentDocument (version 49.0 and later)
  • ManagedContent (version 49.0 and later)
  • Report (version 49.0 and later)
  • Dashboard (version 49.0 and later)
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. Required 48.0