{"id":5067,"date":"2019-06-28T11:02:44","date_gmt":"2019-06-28T11:02:44","guid":{"rendered":"https:\/\/www.softreetechnology.com\/?p=5067"},"modified":"2019-06-28T11:02:44","modified_gmt":"2019-06-28T11:02:44","slug":"crud-operations-on-sharepoint-list-using-pnp-powershell","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/","title":{"rendered":"CRUD Operations on SharePoint List Using PnP PowerShell"},"content":{"rendered":"\n<p>PnP PowerShell can be used to Create, Update and Delete of lists in Sharepoint online as well as Sharepoint on-premises.<\/p>\n\n\n\n<p>In this blog, we will look at steps to Create, Update and Delete of SharePoint Generic list from site using PnP PowerShell.<\/p>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Connect to SharePoint site:<\/span><\/strong><br> Connect-PnPOnline -Url https:\/\/softreetechnology.sharepoint.com\/sites\/TestsiteCollBibuti<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-1-1024x576.png\" alt=\"\" class=\"wp-image-5068\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-2-1024x576.png\" alt=\"\" class=\"wp-image-5069\"\/><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Creating a Generic list:<\/span><\/strong><\/p>\n\n\n\n<p>&#8211;&gt; New-PnPList -Title TestGenList -Template GenericList<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-4-1024x576.png\" alt=\"\" class=\"wp-image-5070\"\/><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Updating the Generic list :<\/span><\/strong><\/p>\n\n\n\n<p>&#8211;&gt; Set-PnPList -Identity &#8216;TestGenList&#8217; -Title &#8216;NewTestGenList&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-5-1024x576.png\" alt=\"\" class=\"wp-image-5071\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/CreatedList-1024x576.png\" alt=\"\" class=\"wp-image-5072\"\/><\/figure>\n\n\n\n<p><strong><span style=\"text-decoration: underline;\">Deleting the Generic list :<\/span><\/strong><\/p>\n\n\n\n<p>&#8211;&gt; Remove-PnPList -Identity NewTestGenList<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-7-1024x576.png\" alt=\"\" class=\"wp-image-5073\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.softreetechnology.com\/wp-content\/uploads\/2019\/06\/Step-8-1024x576.png\" alt=\"\" class=\"wp-image-5074\"\/><\/figure>\n\n\n\n<p><br> In the above write-up, I have explained all the PnP PowerShell commands for all operations, such as &#8211; creating, updating and deleting SharePoint Generic list from SharePoint site programmatically.<\/p>\n\n\n\n<p>This solution is brought to you by our SharePoint professionals.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.softreetechnology.com\/\"><strong>SoftreeTechnology<\/strong><\/a> employs SharePoint consultants; we are a technology services provider with the aim to help companies achieve exceptional performance through SharePoint. Our dedicated team of SharePoint consultants has the right bent of mind to understand and execute customer requirements.<\/p>\n\n\n\n<p>Be it SPFx or SharePoint add-in developments, <a href=\"https:\/\/www.softreetechnology.com\/sharepoint-2019-developments\/\"><strong>SharePoint 2019 developments<\/strong><\/a>, web part developments, migrating from SharePoint 2010\/2013 to SharePoint 2013\/2016\/Office 365, Office 365, SharePoint hosted apps development or something else in SharePoint, we strive to deliver the best<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PnP PowerShell can be used to Create, Update and Delete of lists in Sharepoint online as well as Sharepoint on-premises. In this blog, we will look at steps to Create, Update and Delete of SharePoint Generic list from site using PnP PowerShell. Connect to SharePoint site: Connect-PnPOnline -Url https:\/\/softreetechnology.sharepoint.com\/sites\/TestsiteCollBibuti Creating a Generic list: &#8211;&gt; New-PnPList -Title TestGenList -Template GenericList Updating [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[259,260,208],"class_list":["post-5067","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","tag-crud-operations","tag-crud-operations-on-sharepoint-list","tag-pnp-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CRUD Operations on SharePoint List Using PnP PowerShell - Softree Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CRUD Operations on SharePoint List Using PnP PowerShell - Softree Technology\" \/>\n<meta property=\"og:description\" content=\"PnP PowerShell can be used to Create, Update and Delete of lists in Sharepoint online as well as Sharepoint on-premises. In this blog, we will look at steps to Create, Update and Delete of SharePoint Generic list from site using PnP PowerShell. Connect to SharePoint site: Connect-PnPOnline -Url https:\/\/softreetechnology.sharepoint.com\/sites\/TestsiteCollBibuti Creating a Generic list: &#8211;&gt; New-PnPList -Title TestGenList -Template GenericList Updating [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-28T11:02:44+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CRUD Operations on SharePoint List Using PnP PowerShell - Softree Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/","og_locale":"en_US","og_type":"article","og_title":"CRUD Operations on SharePoint List Using PnP PowerShell - Softree Technology","og_description":"PnP PowerShell can be used to Create, Update and Delete of lists in Sharepoint online as well as Sharepoint on-premises. In this blog, we will look at steps to Create, Update and Delete of SharePoint Generic list from site using PnP PowerShell. Connect to SharePoint site: Connect-PnPOnline -Url https:\/\/softreetechnology.sharepoint.com\/sites\/TestsiteCollBibuti Creating a Generic list: &#8211;&gt; New-PnPList -Title TestGenList -Template GenericList Updating [&hellip;]","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/","og_site_name":"Softree Technology","article_published_time":"2019-06-28T11:02:44+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"CRUD Operations on SharePoint List Using PnP PowerShell","datePublished":"2019-06-28T11:02:44+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/"},"wordCount":205,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#primaryimage"},"thumbnailUrl":"","keywords":["CRUD Operations","CRUD Operations on SharePoint List","PnP PowerShell"],"articleSection":["SharePoint"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/","name":"CRUD Operations on SharePoint List Using PnP PowerShell - Softree Technology","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#primaryimage"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#primaryimage"},"thumbnailUrl":"","datePublished":"2019-06-28T11:02:44+00:00","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/crud-operations-on-sharepoint-list-using-pnp-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CRUD Operations on SharePoint List Using PnP PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/5067","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=5067"}],"version-history":[{"count":0,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/5067\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=5067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=5067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=5067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}