Tag: SharePoint Online

How to download file from SharePoint online document library using PowerShell CSOM from the given date?

Here in this post – I will show how we can download files from SharePoint online document library using PowerShell CSOM from the given date by passing “From Date” and “To Date” to the query. Lets say we want to download certain files from SharePoint document library those were created between these two dates –

Continue reading

How to create multiple items in SharePoint online list using PowerShell CSOM?

Here in this post, I will show how to create multiple list items in SharePoint online list usingĀ  PowerShell CSOM code. PowerShell CSOM code to add multiple items: CLS #Load SharePoint CSOM Assemblies #Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll” #Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” $fileName = “Adding_Multiple_Items_Report” $enddate = (Get-Date).tostring(“yyyyMMddhhmmss”)

Continue reading

Send email from SharePoint online Using CSOM PowerShell script

In this post I will share how we can send email from SharePoint online using CSOM PowerShell script. CSOM PowerShell Script to send email from SharePoint online CLS #Load SharePoint CSOM Assemblies #Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll” #Add-Type -Path “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” $fileName = “Email_Sending_Report” $enddate = (Get-Date).tostring(“yyyyMMddhhmmss”) $logFileName

Continue reading