When you create a chatter poll you create the poll choices separately so these are most likely a separate Sobject.
Is there any way to access either the choices in the poll or the votes for a particular choice?
|
When you create a chatter poll you create the poll choices separately so these are most likely a separate Sobject. Is there any way to access either the choices in the poll or the votes for a particular choice? |
|||
|
|
|
Poll votes are not currently exposed and most likely never will be since if these objects were exposed there would be no way to keep the votes anonymous. See this idea for the option to create polls with public vs. private votes. Poll choices are stored in the FeedPollChoice Sobject. However, this is only accessible through the chatter REST api. You can't even get describe information for this object through apex or the metadata api. |
|||
|
|
If you use the new Chatter in Apex feature (formerly "Connect in Apex") that is available in dev preview in Spring 13 and is expected to GA in Summer 13 you can:
Spring 13 dev preview doc is in here: http://www.salesforce.com/us/developer/docs/chatterapi/index.htm |
|||
|
|