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
MANATTWebMANATTWeb 

Auto-post to a Chatter Group

Is it possible to configure your personal Chatter posts to be automatically posted to one or more groups?

ChrisOctagonChrisOctagon

You could write a trigger to do it, i think

keady@sfdckeady@sfdc

HI Chris,

 

i have a same requirement. I tried writing a trigger but i could not able to achieve it.

problems i faced are

1. I faced error when i tried to assign CollaborationGrop Id as a parent id of the FeedItem

2. as per my understanding we have to write a trigger on FeedItem object and if i write it on after insert event, it is recursively calling the trigger and giving me exception.

 

Please let me know if you can provide a sample peice of working code to achieve this.

 

Thanks in advance!

ChrisOctagonChrisOctagon

1. What is the error you're getting when assigning a collab group id as the parent? Is the context user a member of the target group?

 

2. There are some tips on handling recursive triggers here: http://www.salesforce.com/docs/developer/cookbook/Content/apex_controlling_recursive_triggers.htm