I'm using a CAML batch file to add items to a list using SharePoint List Web Service on my InfoPath form.
The batch file is like this:
<?xml version="1.0" encoding="UTF-8" ?> <Batch> <Method ID="1" Cmd="New"> <Field Name="Employee" >Jimbo Alba</Field> </Method> </Batch>
It also works for "Person or Group" field types.
<Field Name="Person" >1</Field>
That is if you know that the person's ID in the User Information List is 1. In case the person is not yet in the User Information List how can I add it using InfoPath or through code?