Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Feature Schemas
List Instances

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (3)
List Instances

The ListInstance element specifies default data with which to provision the given list type. This element maps to the List element previously located within the Configuration element in Onet.xml.

Elements

  ListInstance

    Data

      Rows

        Row

          Field

Example

The following example shows the contents of an XML file in which the ListInstance element is used to specify default data for a list instance.

Xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance 
      Id="WssAdminTasks" Title="Administrator Tasks" 
      Description="Create an Administrator Tasks list to track a group of admin work items."
      TemplateType="1200" Url="Lists/AdminTasks">
      <Data>
         <Rows>
            <Row>
               <Field Name="Action">/_admin/globalemailconfig.aspx?Source=/default.aspx, Configure Outgoing E-Mail Settings</Field>
               <Field Name="Description">Specify the SMTP e-mail server to use for alerts and administrator notifications.</Field>
               <Field Name="Title">Outgoing e-mail settings</Field>
               <Field Name="SystemTask">True</Field>
               <Field Name="Priority">01</Field>
               <Field Name="Service">SMTP</Field>
            </Row>
         </Rows>
      </Data>
   </ListInstance>
</Elements>

See Also

Other Resources

List Instance

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Id is text when MSDN says it should be an int      rlasker3   |   Edit   |   Show History
You have conflicting information here. The Id field of the ListInstance element as defined here:

http://msdn.microsoft.com/en-us/library/ms476062.aspx

says that:

Id = Required Integer. Specifies a unique identifier for the list instance. The integer must be unique across the Feature definition.

But your example above has the Id of the ListInstance element as "WssAdminTasks".
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker