Newer Version Available

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

createManagedTopicByName(String, String, ConnectApi.ManagedTopicType)

Creates a managed topic of a specific type by name for the specified community.

API Version

32.0

Requires Chatter

No

Signature

public static ConnectApi.ManagedTopic createManagedTopicByName(String communityId, String name, ConnectApi.ManagedTopicType managedTopicType)

Parameters

communityId
Type: String
Use either the ID for a community, internal, or null.
name
Type: String
Name of the topic.
managedTopicType
Type: ConnectApi.ManagedTopicType
Specify the type of managed topic.
  • Featured—Topics that are featured, for example, on the community home page, but don’t provide overall navigation.
  • Navigational—Topics that display in a navigational menu in the community.

A topic can be associated with up to two managed topic types, so a topic can be both a Featured topic and a Navigational topic.

You can create up to 25 managed topics per managedTopicType.

Return Value

Type: ConnectApi.ManagedTopic

Usage

Only community managers (users with the “Create and Set Up Communities” or “Manage Communities” permission) can create managed topics.