Activity Forums Salesforce® Discussions How to create a post with a poll in Chatter via Apex?

  • How to create a post with a poll in Chatter via Apex?

  • Piyush

    Member
    April 30, 2016 at 5:51 pm

    How to create a post with a poll in Chatter via Apex?

  • Abhinav

    Member
    May 27, 2016 at 1:17 pm

    Hi Piyush,

    postFeedElement(communityId, feedElement, feedElementFileUpload)

    The ConnectApiHelper class currently doesn't support taking a ConnectApi.​FeedElementCapabilitiesInput as a parameter when posting a feed item. You'd need that in order to use a ConnectApi.​PollCapabilityInput. You'll need to either avoid using ConnectApiHelper, or modify your copy of it so that it takes in the additional parameter.

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos