Expand Minimize

ListInstance references ListDefinition via CustomSchema

A ListInstance can reference a ListDefinition in attribute 'CustomSchema'

CheckId SPD015403
TypeName ListInstanceReferencesCustomSchema
Severity Information
Type ListInstance

A ListInstance can reference a ElementFile of the same Feature in attribute 'CustomSchema'. The TemplateType in the ListInstance corresponds to the attribute 'Type' in the schema.xml. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance
      TemplateType="121"
      Title="Solution Gallery"  
      Url="_catalogs/solutions"  
      CustomSchema="Files\_catalogs\solutions\Schema.xml"  
      RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/" />
</Elements>


Corresponding Schema.xml:

<List  
   Title="Solution Gallery"  
   BaseType="1"  
   Type="121"  
   xmlns="http://schemas.microsoft.com/sharepoint/">
   <MetaData>
   ...
   </MetaData>
</List>

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.