Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to create a folder in a documents library in Sharepoint Online with Powershell

$
0
0

I'm using this piece of code:

$SPFolder = $list.Folders.Add("", [Microsoft.SharePoint.SPFileSystemObjectType]::Folder, $Folder)
$SPFolder.Update();

But i always get the same error

"Unable to find type [Microsoft.SharePoint.SPFileSystemObjectType]: make sure that the assembly containing this type is loaded."

Does this only work with Sharepoint 2010? I'm using Sharepoint 2013 

Thanks


Dearbhla Bradley


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>