SharePoint Framework : Provisioning multiple list instances through SPFx solution.

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 metadata 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 respective schema files.

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