Pages

Friday, February 18, 2022

How can we create hidden list in SharePoint Online via SPFx using PnP JS

Problem Background 

I wanted to create Hidden List to store some setting values. The list is provisioned in SharePoint Online using SPFx with the help of  PnP JS.

Solution 

sp.web.lists.ensure("ListName", "List Description", 100, false, { Hidden: true });

Reference

No comments:

Post a Comment