Sharepoint 2010 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2010       RSS Feeds

Add item to "Person Or Group" column in SPList using CAML

  Asked By: Prakash    Date: Mar 15    Category: Sharepoint 2010    Views: 9756

I am trying to add the item to the sharepoint list column "Person or Group" using CAML in InfoPath 2010 (Developer - Code Editor).

List Column:
Employee - Person or Group
Blood Group - String

<Creating CAML query to add item to that list>
String name="<domain>\username";
batchElement.InnerXml = "<Method ID='1' Cmd='New'>" +
"<Field Name='Employee' Type='User'>'" + name + "'</Field>" +

Adding value only to blood group column added successfully.
Adding both also displays the same error.

<ErrorCode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x80020005</ErrorCode>

I could not use SPWeb or SPUser here. It shows x64 compatible error.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Add item to "Person Or Group" column in SPList using CAML Or get search suggestion and latest updates.