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

The beginning tag for rich text markup.

Subclass of ConnectApi.MessageSegmentInput.

Property Type Description Required or Optional Available Version
altText String Alternative text for the Hyperlink segment. Optional 45.0
markupType ConnectApi.​MarkupType Type of rich text markup.
  • Bold—Bold tag.
  • Code—Code tag.
  • Hyperlink—Hyperlink anchor tag.
  • Italic—Italic tag.
  • ListItem—List item tag.
  • OrderedList—Ordered list tag.
  • Paragraph—Paragraph tag.
  • Strikethrough—Strikethrough tag.
  • Underline—Underline tag.
  • UnorderedList—Unordered list tag.
Markup segments with a markupType of Code can include only text segments.
Required 35.0
url String URL for the Hyperlink segment. Supported hyperlink URLs start with http:// or https://. Required for Hyperlink 45.0