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
Sure@DreamSure@Dream 

nickname of the user who posted

Hi All,

I am creating a vf page for displaying posts from a chatter group using ConnectApi.In that page, I want to display the community nickname of the user who posted/commented. How to do that?

Thanks
AmitAmit (Salesforce Developers) 
Hello,

Please refer to the following guide for more information :

http://help.salesforce.com/help/pdfs/en/salesforce_communities_implementation.pdf
alouie_sfdcalouie_sfdc
The ConnectApi output classes currently don't include the community nickname, so you'll need to query the User object for the CommunityNickname property.