Calendar(Events) list on Sharepoint Online Root SiteCollection

…this post was published on 2015 January 2.

The Question is: How to create a Calendar list in your Office 365 env?
The Answer

Step 1 – same code for authentication as presented in this post
Step 2
    $noua_lista = New-Object  Microsoft.SharePoint.Client.ListCreationInformation
    $noua_lista.Title=”My_Calendar”
    $noua_lista.Description=”Description for your Calendar/Events list”
    $noua_lista.TemplateType=[Microsoft.SharePoint.Client.ListTemplateType]::Events
    $noua_lista = $context.Web.Lists.add($noua_lista)
    $noua_lista.update()
    $context.Load($noua_lista)
    $context.ExecuteQuery()

 

 

This entry was posted in Coding, Powershell, Sharepoint Online. Bookmark the permalink.