0

With Sharepoint 2010, non duplicates can be enforced at the site column / list definition level (a unique index).

Is there a built in way to do instead of failing with "duplicates not allowed", during an insert. Is it possible to instead replace that list item.

I can manually do this with a bit of custom code, but I'm wondering if there is a build in way to do this using the object model / caml?

1

No, you have to implement this on your own. That is check if the unique value exists and then either add or update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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