So I have been able to populate rows with Lookup
type fields as such:
<ListInstance ... >
<Data>
<Rows>
<Row>
<Field Name="LookupColumn">2;#LookupValue</Field>
</Row>
</Rows>
</Data>
</ListInstance>
But how do I populate multiple values in the same manner for a LookupMulti
typed field?
I can get one value, but have been unable to figure out how to populate more.
Relevant XML
Schema.xml
<Field ID="{69FCEC38-3F15-48DB-891E-D76EF66A02A4}"
Name="MultiLookupColumn"
Type="LookupMulti"
List="Lists/Target"
ShowField="Title"
Mult="true"
DisplayName="MultiLookupColumn"
Required="false"/>
Elements.xml
<ListInstance ... >
<Data>
<Rows>
<Row>
<Field Name="MultiLookupColumn">1;#Value1;#2;#Value2</Field>
</Row>
</Rows>
</Data>
</ListInstance>
I know the schema is right because I can add multiple items via the AddItem.aspx form.
Edit
The schema may be wrong. The form allows me to add multiple but when I do still only the first value displays.