Skip to main content


Showing posts from August, 2020

Create document library using SPFx solution

In this article, we are going to learn how to create(provision) document library programmatically. We can create a list or document libraries programmatically with the SPFx solution. In my previous article, I wrote about the Provisioning of list with SPFx web part solution. SPFx provides flexibility to provision SharePoint assets with the solution. In this article, we are going to provision a document library.Create a client-side web part solution Follow the steps for creating a client-side web part solution, run the commands using command prompt.
Create a directory md test-webpartMove to the directory cd test-webpartRun yo @microsoft/sharepoint command to create a client-side web part.Once you run the command mentioned above, you need to put some information related to the web part solution  What is your solution name? Give the name to your solution. Which baseline packages do you want to target for your component(s)?  On which environment you want to use this in our case we select &…