Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

Create Bulk Document Sets Using PowerShell in SharePoint Online 2013 (Office 365)

$
0
0

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.

Viewing all articles
Browse latest Browse all 21070

Trending Articles



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