SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So guys, I have a sharepoint list with and fields like "webID, url, rating" and a c# list with more or less the same fields. My task is to compare the lists by webID and if the row's "rating" field is different than in my c# list then I would like to update it accordingly. This would happen in a feature's event receiver.

What would be the fastest and best approach to do that?

share|improve this question
up vote 1 down vote accepted

Use CAML-query to get all the items which webID doesn't match your C# list's value and then update it.

This blog should get you started as it also applies for the client object model.

These two should also be helpfull:

  1. Client Object Model Basic Example – CAMLQuery
  2. CAML and the Client Object Model
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.