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
benito dardobenito dardo 

How get Idea Community from Categories multiselect

When you create a category (Categories standard field, type: MultiselectPicklist) in Idea standard object, you define the community where the category belongs to.

Currently I'm using...

 

Schema.DescribeFieldResult ideaCategories = Idea.Categories.getDescribe();
for (Schema.Picklistentry picklistEntry: ideaCategories.getPicklistValues()){
   System.debug('---------- value = '+pickListEntry.getValue());               
}

 

... to get each Categories value

How could I get the community of each Categories option ?

 

I'm just trying to get the multiselect options filtered by per Community