I'm using the sample code from this part of the Developer's Guide to create Chatter Posts when certain conditions are met on a Case record. It all works well, but I'm not seeing any way that I can assign a topic to each FeedItem that is created with this code, unless I iterate through the
ConnectAPI.BatchResult to find the Id of the resulting
FeedItem records and then insert a
TopicAssignment for each record.
Is there some method I'm not seeing that will allow me to create the FeedItem records and assign the Topic all at the same time?