You need to sign in to do that
Don't have an account?
Douglas Hauck
How to set FeedElement capabilities not in CapabilitiesInput class?
Hey, all -
I am creating an Apex helper class to generate Chatter FeedElements, and I would like to allow the calling method to specify whether the element allows Likes. According to the documentation, this is determined by whether the element Capabilities include the ChatterLikesCapability class.
Fair enough, except that the actual FeedElementCapabilitiesInput does not contain a property for ChatterLikes, nor is there a subclass of the FeedElementCapabilitiesInput Class for ChatterLikes. There are other capabilities that are in the Output class but not the Input class, as well. How are these set, if not through the Input class?
Thanks,
Doug
I am creating an Apex helper class to generate Chatter FeedElements, and I would like to allow the calling method to specify whether the element allows Likes. According to the documentation, this is determined by whether the element Capabilities include the ChatterLikesCapability class.
Fair enough, except that the actual FeedElementCapabilitiesInput does not contain a property for ChatterLikes, nor is there a subclass of the FeedElementCapabilitiesInput Class for ChatterLikes. There are other capabilities that are in the Output class but not the Input class, as well. How are these set, if not through the Input class?
Thanks,
Doug
It’s not possible to disallow likes when posting feed items. We have some feed elements like bundled posts and (I think) recommendations that can’t be liked, but we don’t allow users to toggle the ability to like on feed items.
Hope this helps,
Christina
All Answers
It’s not possible to disallow likes when posting feed items. We have some feed elements like bundled posts and (I think) recommendations that can’t be liked, but we don’t allow users to toggle the ability to like on feed items.
Hope this helps,
Christina
I will mark this as the answer, but first can you tell me, is that pretty much the case for all of the Capabilities that are not available on the CapabilitiesInput class (banner, comments, emailMessage, socialPost, etc.)? They are not available because cannot be set programmatically?