Tag Info

New answers tagged

0

In addition set HTML_x0020_File_x0020_Type property to SharePoint.DocumentSet while creating a Document Set. The following example demonstrates how to create Document Set using SharePoint 2010 CSOM: public static void CreateDocumentSet(ClientContext ctx,string listTitle, string docSetName) { var list = ctx.Web.Lists.GetByTitle(listTitle); ...


0

How to create a Document Set using SharePoint CSOM in PowerShell Use Microsoft.SharePoint.Client.DocumentSet.DocumentSet.Create method to create a DocumentSet object: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime") ...


0

If you use document sets and versioning you should be aware of this: If the version of a document inside a document set changes, the version of the document set remains unchanged. Versioning of a document set can be done manually (by using the document set's ribbon) Versioning of a document set is like creating a snapshot ...


1

When uploading to SharePoint I would suggest doing it like this instead. FileStream fileStream = File.OpenRead(documentPath); SPFile file = documentLibrary.Files.Add(destinationSiteUrl + "/" + documentName, fileStream); documentLibrary.Update(); Note that the Add method has more input parameters (Override methods). But works great for all types of files ...


0

You can use below snippet to get the document set Check if a document set exists function getDocSet(listTitle,docSetName, success,error) { var context = SP.ClientContext.get_current(); var list = context.get_web().get_lists().getByTitle(listTitle); var items = list.getItems(createGetDocSetQuery(docSetName)); context.load(items); context.executeQueryAsync( ...


0

You can use native SharePoint filter web part something like "filter by Url" and write there ID or what you want to send as parameter and secondly you should get filter values from this web part.


0

Solved this by using a content editor with text that linked to the relevant document set view.



Top 50 recent answers are included