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

I'm using a CAML query to update a SharePoint 2010 List from InfoPath. My CAML looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<Batch OnError="Continue">
    <Method ID="1" Cmd="Update">
        <Field Name="ID"></Field>
        <Field Name="Title"></Field>
        <Field Type="Choice" BaseType="Text" Name="Process">
                <CHOICE>Choice 1</CHOICE>
                <CHOICE>Choice 2</CHOICE>
                <CHOICE>Choice 3</CHOICE>

For the Title field I just set the value to whatever text I want but I don't know how to set which choices are selected for the Process field. How do I do that?

share|improve this question

Fired up Wireshark and looked at the XML coming back from SharePoint and saw how to do this. Basically you just set the Field's value to a string with each choice separated by ;# for example if Choices 1 and 3 were selected:

<Field Type="Choice" BaseType="Text" Name="Process">;#Choice 1;#Choice 3;#</Field>
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.