function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott McArthur 8Scott McArthur 8 

Querying Topic Assignments in Customer Community

I am attempting to query Topics assigned to a custom object in the  Apex controller of a Lightning Component being used in a Community using the Napili template. The user is using the 'Customer Community Plus License'. The code is like below but does not seem to return any results. I am wondering if there is some restrictions on a Customer Community user accessing Topics?
 
List<TopicAssignment> topicAssignments = [SELECT Id, Topic.Name FROM TopicAssignment WHERE EntityId = :objectId];