How to create a SharePoint list using PnP JS Library in Office 365 or SharePoint 2016?
Hello SharePointers,
In this blog, we will go through piece of power shell JS code to create a SharePoint list using PnP JS Library.
script type=”text/javascript” src=”/siteasstes/scripts/pnp.min.js”>
<script type=”text/javascript”>
$pnp.sp.web.lists.add(‘My custom list, ‘Description for my own list’, 100, false).then(function(result) {
if (result.data.Created)
alert(‘List Created Successfully!’);
});
</script>
Happy SharePointing Folks!