Hi all,
I want to create a PowerShell Script for Creating Bulk Document Set in SharePoint Online 2013 (Office 365). Need to Create Multiple Docuemnt Sets at once (more than 10). Please some body suggest me about powershell that what i am doing wrong in below code.
I have Written below code but getting Some Error.
foreach($docSetInfoin$docSetInfos)
{
[Hashtable]$docsetProperties=@{}
$docsetProperties.Add('Name',$docSetInfo.Name)
$docsetProperties.Add('Title',$docSetInfo.Title)
$docsetProperties.Add('Customer Document No',$docSetInfo.CustomerDocumentNo)
-----------------So on-----------
-------------------so on----------------
$NewFolder=[Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet]::Create($list.RootFolder,$docSetInfo.Name,$cType.Id,$docsetProperties)
}
Please some body help me in resolving below errors.
Unable to find type [Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet]: make sure that the assembly containing this type
is loaded.
At D:\Phase 2 of Invensys DMS System(Support Tasks)\Power Shell Script for SubSites\BulkDocTest.ps1:71 char:3
+ $NewFolder = [Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet]::C ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Offic...ets.DocumentSet:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound
Thanks in advance.