+ Start a Discussion
asha gadiasha gadi 

ConnectApi.ConnectApiException: Mentioned group does not exist

I have a chatter feed publisher component at 2 places(topics page and article page) in a community and whenever user posts something, I'm writing a trigger code on FeedItem object to auto at mention a public chatter group(topic discussions). For example, if I post 'test' , trigger automatically appends @topic doscussions to the test and updates the feed item post. It's working as expected from article page but from topic page , I'm getting the error 'ConnectApi.ConnectApiException: Mentioned group does not exist'. It's really odd because its the same code. Any insights into this would help! 
asha gadiasha gadi
I figured it out. if in case anyone face the issue- create the groups inside the community to be able to mention them from a community. More details here https://success.salesforce.com/answers?id=90630000000Zj8TAAS