0
votes

My CAML query not work if it contain any "Person or Group" fields.

Here is my CAML:

<Batch OnError="Continue" ListVersion="17" PreCalc="TRUE">
  <Method ID="1" Cmd="New">
  <Field Name="Title">fff</Field>
  <Field Name="Person_x0020_or_x0020_Group">test\administrator</Field>
</Method>

1

1 Answers

1
votes

You have to use the User ID.

<Field Name="Person_x0020_or_x0020_Group">[SharePoint User ID]</Field>