ConnectApi.MentionSegmentInput

Include an @mention of a user or group in a feed post or comment. When creating a feed post or comment, you can include up to 25 mentions.

Subclass of ConnectApi.MessageSegmentInput.

PropertyTypeDescriptionAvailable Version
idStringID of the user or group to mention.
To mention a user, use either id or username. You can’t include both.
To mention a group, you must use id.
28.0
Groups are available in 29.0.
usernameStringUser name of the user to mention.
To mention a user, use either id or username. You can’t include both.
38.0

See Also