Search code examples
sharepoint-2010web-partsratingsharepoint-api

How to get user rating programatically in Sharepoint 2010?


So I have enabled Ratings in Sharepoint 2010 for a Document Library following this guide: http://weblogs.asp.net/bsimser/archive/2009/10/19/sharepoint-2010-what-s-new-ratings-spc09.aspx

Now I need a way to get the ratings programatically in a Webpart.

I would like a way to get a list like the following (any other way is welcome though):

Item Id/Url    |    Rating   |  UserId

Thank you


Solution

  • I've found the answer here: http://msdn.microsoft.com/en-us/library/ff407954.aspx

    It's funny I couldn't find it anywhere using Google, I should have search for "Sharepoint Social Rating" instead of just "rating".