Tag Info

New answers tagged

2

Recently I answered a very similar question here. If you need all of the folders and subfolders (but no documents) recursively from a document library, that is what you should use (send it via POST to the server due to GetItems method call): /_api/web/Lists/GetByTitle('Title of your doc. ...


5

You could utilize GetItems method and specify the following query: <View Scope="RecursiveAll"> <Query> <Where> <Eq> <FieldRef Name="FSObjType" /><Value Type="Integer">1</Value> </Eq> </Where> </Query> </View> to return all ...


0

Gets or sets the URL to which users are redirected when they browse to the folder. A string that contains the URL to which users are redirected. For a wiki site, the string specifies a site-relative URL, for example, MyWikiFolder/MyWelcomePage.aspx, but for a wiki library, the string specifies a folder-relative URL, for example, MyWelcome.aspx. ...


0

That property is used by Publishing sites to set the Home Page. SPWeb.RootFolder.WelcomePage You can also use similar technic to set List welcome page SPList.RootFolder.WelcomePage We can't have a welcome page for each of the sub folders. Folder is a container of items and it doesn't make sense to have a separate welcome page for folders.


1

Create a new RoleDefinitionBinding, object set the type of permissions to it and add it as parameter to RoleAssignments of list item: using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointServices.Samples { class BreakSecurityInheritanceAddUser { ...


1

In that case you don't need to specify CamlQuery.FolderServerRelativeUrl property at all. The following example demonstrates how to retrieve items of top folder in List: var list = ctx.Web.Lists.GetByTitle(listTitle); var items = list.GetItems(new CamlQuery()); ctx.Load(items); ctx.ExecuteQuery(); If you are interested in returning only items associated ...


1

You just need this: SPQuery query = new SPQuery(); SPListItemCollection myItems = list.GetItems(query); By default you get the files under the root folder. Scopes in a CAML Query


0

Try below steps Create new library Now the library will provide the same permission set in the site Create a folder Break Permission Inheritance - Then remove all users/groups Now add the user and provide contribute permission


2

According to Working with folders and files with REST the following example demonstrates how to create a Folder: url: http://site url/_api/web/folders method: POST body: { '__metadata': { 'type': 'SP.Folder' }, 'ServerRelativeUrl': '/document library relative url/folder name'} Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form ...


2

I haven't tried this. But I believe you need to deploy the sandbox solution to your site collection and activate it. Once this is done you can open the folder property and change the content type to Document Set. <- This will work for future folders but not existing ones. The workflow mentioned in the link bellow will do the trick. Also take a look at ...


0

Not possible. Probably you can try enhancing CopyItemExtended custom activity http://spdactivities.codeplex.com/wikipage?title=Copy%20List%20Item%20Extended%20Activity&referringTitle=Home



Top 50 recent answers are included