SharePoint online provides only a small set of basic commands for writing powershell scripts. IF we have to do any operation using powershell we need to use CSOM or REST API. Sharepoint patterns and Practises (PnP) team came with a powershell module for doing operation on the sharepoint online. Its very help full while writing scripts. Similar modules exists for Sharepoint 2013 and Sharepoint 2016. Link to the Github respositry. In the below article I will try to add items to a list picking the data from the JSON file. Try to check whether SharepointPNPPowershellOnline module was installed or not. If not install it. # This script adds items to the list picking up the data from the json file. if (-not (Get-Module -ListAvailable -Name SharePointPnPPowerShellOnline)) { Install-Module SharePointPnPPowerShellOnline } Get the data from the json file and store it in a va...
Blogging about new things I learned in SharePoint, powershell and Office 365 applications.