Ram Prasad Meenavalli

SharePoint Framework : Provisioning multiple list instances through SPFx solution.

Published on 13-Jun-2017 | Comments

SharePoint Asstes, like Fields/Site Columns, Content Types, List Instances can be provisioned or deployed to a SharePoint Site through SharePoint Framework (SPFx) solutions. SPFx solution uses feature framework files through which we can define the XML to provision the necessary assets.

The following resources from SPFx documentation provides more details

How to provision multiple List Instances?

The key feature framework files to provision a list instance are

  • elements.xml : Defines the metatdata of the list along with list definition mapped using a CustomSchema property
  • schema.xml: Defines the list structure, content types and views

To provision more than one list instance, we can create two different schema files (like schemaOne.xml & schemaTwo.xml), create two ListInstance elements in the elements.xml file referring to the repective schema files.

Also, include all the schema files in the package-solution.json

With this configuration, we should be able to create multiple list instances.


View Ram Prasad Meenavalli's LinkedIn profile

SharePoint Technology Evangelist