Group owners, managers, and users with the “Modify All Data” permission can use
the Announcement object to create, edit, and
delete group announcements. Creating a group announcement is a three-step process.
- Use the FeedItem object to
create a text post with the announcement’s content. Use the CollaborationGroup record you want to post the announcement to as the parent of this feed item.
- Next, use the feed item ID and an expiration date to create the announcement record.
- Finally, update the AnnouncementId field in the CollaborationGroup record with the ID of the announcement you created.
To delete the group announcement, simply delete the
AnnouncementId value in the CollaborationGroup record. To restore a group announcement, update the
AnnouncementId field for a group with the announcement’s ID. The expiration date for the announcement
should be in the future and the feed item used to create the announcement should be parented by
the same group.