0

I am trying to create a chatter feed item through batch process which would have two attachments.

  1. Canvas
  2. PDF file

In the documentation the attachment parameter for the method, ConnectApi.ChatterFeeds.postFeedItem seems to be accepting single attachments. Is there any workaround for this? Please suggest.

0

No, currently, feed items can only have a single attachment. One workaround would be to post the Canvas attachment in a feed item, and then to attach the PDF file in a comment.

0

One can use Chatter Rest Api which provides the ability to attach more than one attachment.

Kindly refer the link for better reference.

https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/quickreference_post_feed_element_content.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.