Tuesday, July 8, 2014

How to Add Multiple Users in Data Element in SharePoint List Scheme

This is method is also use for add multiple lookup values as well.

<ListInstance Title="List1" OnQuickLaunch="FALSE" TemplateType="100" Url="Lists/List1" Description="List1 List Instance">
    <Data>
      <Rows>
        <Row>
          <Field Name="Title">abc</Field>
          <Field Name="MultipleUser">9;#Melick Baranasooriya;#12;#One User</Field>
          <Field Name="MultipleValues">1;#One;#2;#Two</Field>
        </Row>
      </Rows>
    </Data>
  </ListInstance>

In here separator will be ;# thus we need to specify id;#value

Post a Comment