+ Start a Discussion
anand.sctanand.sct 

Update rating for content in visualforce

I am exposing content in an authenticated site using visualforce pages. I have to add the provision for users to rate the content. The fields  postive rating count, negative rating count, rating count etc on contentversion are read only. Not sure where the data is stored for content rating. Or is there any other API which can be use to achieve this (similar to the API for knowledge) Any help in proceeding with this is appreciated. Thanks!

Alex SelwynAlex Selwyn
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentversionrating.htm

I believe the rating should be 1 for positive and -1 for negative, not sure though.