7
votes
Accepted
How to tell if an Item is a SPFolder or DocumentSet (through code)
You can check if your item content type inherits from DocumentSet base content type that is 0x0120D520.
Using C#:
listItem.ContentTypeId.IsChildOf(new SPContentTypeId("0x0120D520"))
or
listItem....
7
votes
Accepted
Create folders in site pages - Possible?
It is possible but you have to enable folders in advanced settings in the library settings.
Go to library in question > Library Settings > Advanced settings > Set 'Make "New Folder" command ...
6
votes
How to move list item into folder in Sharepoint online
Example: how to move list item into a folder via SharePoint JSOM API
/**
* Move ListItem
* @param {SP.ListItem} list item
* @param {string} targetFolderUrl - server relative url of folder where ...
5
votes
With REST recursively retrieve file and folder directory structure
You are probably looking for FileRef property instead of (or in addition to) FileLeafRef property.
FileRef property returns server relative file/folder url
The following query demonstrates how ...
5
votes
Accepted
Connect Windows File Share with SharePoint Foundation 2013
If you are asking whether you can leave files in a file share and access them through SharePoint with the out-of-the-box features then the answer is no. There are however, 3rd party solutions out ...
5
votes
Share folder with external users
This feature is yet not available in SharePoint, but product team has confirmed that they are working on this feature...below is comment from SharePoint User Voice forum
WORKING ON IT · ...
5
votes
Accepted
How to add list item inside a folder using REST API
The REST API does not have complete support for folders - particularly when it comes to working with list items. While it's quite possible that there is a way to get this to work using the REST API, ...
4
votes
Accepted
How to create SharePoint Folders programmatically?
Considering Folder is at one level, and not folders inside folders. This code will work.
Also make sure, in list setting -> Advance Settings -> Make "New Folder" command available? is set to Yes.
...
4
votes
Accepted
Share folder with external users
No, it's not possible to share folders with "No sign-in required" at this moment. Anonymous links are available only for individual files or document. In future updates to Office 365 it will be ...
4
votes
Accepted
Folder in Folder Content Types
Create your own Content Type (MyFolder) which inherits from folder. Add your newly created MyFolder to your library, and you're good to go.
4
votes
Sharing folders on SharePoint and variance between "Shared with" and "Advanced"
'Shared With' contains permissions inherited from parent sites, SharePoint Groups, and AD Groups that have access. When you click advanced, it will show these groups and individual users that have ...
4
votes
Accepted
Remove permission on a folder by csom
this worked in my scenario.
List companylibrary = clientContext.Web.Lists.GetByTitle(CompanyType);
Web site = clientContext.Web;
companylibrary.BreakRoleInheritance(...
3
votes
Edit the "Name" of a document but not it's link
The folder defines the path. There's no way of getting around this. It's just like renaming a folder on your hard drive. If you have a link to a file on your hard drive, then change the folder name, ...
3
votes
Accepted
How can I see what list items are in what folder?
Find folder name from ServerUrl of your document. It should look like
"/{LibraName}/{FolderName}/{fileName.extention}"
So the folder is always before the document.
Coding Changes
cqy....
3
votes
Display all documents list items, including subfolders in webpart using JSLink, as a tree view
I found a solution.
Here it is:
I modified the view of my documents Library to display all elements flat, without folders.
Then I created this JSLink:
var DocuView = DocuView || {};
DocuView....
3
votes
Realistically manage folders in SP 2013
In SharePoint 2010, any SharePoint expert would recommend the use of metadata. That's how the system was designed to be used. However, there are now a few obstacles to using metadata:
Adding files ...
3
votes
Accepted
Add a hyperlink to a list item pointing to a folder that is NOT on a server (Shared folder)
Instead of K:/ try file://K:/
Or even better, find out the real address of the fileshare that you've got mapped to the drive letter K. When you go to your Computer and you see the K drive listed ...
3
votes
How to add list item inside a folder using REST API
As Rob very correctly mentioned, REST API doesn't have complete support for folders. But using the old /_vti_bin/listdata.svc, you can create a list item and add it inside a folder. For that, you need ...
3
votes
Accepted
SharePoint online, document library, folders permissions
Yes quite possible and easy!!
Open your Library where your 100th folder is there and select it.
Click share after you select your desired folder .
A popup comes , click on 'can edit'-->then on '...
3
votes
Remove permission on a folder by csom
Use this to break role inheritance and remove all permissions.
//method defined by CSOM
public virtual void BreakRoleInheritance(bool copyRoleAssignments, bool clearSubscopes);
//it's use
...
3
votes
Create folders in site pages - Possible?
The idea behind a publishing site is that you create subsites for sections or areas of your site. For example About Us, Products, Services, News. Since each sub site will have its own Pages library, ...
3
votes
Accepted
Question on unique permissions count
It will be treated as one unique permission.
Setting folder permissions is a best practice, consider this article - Best practices for using fine-grained permissions:
Only set unique scopes on ...
3
votes
Allowing folder creation in Document Sets but not within the containing Document Library
Yes, in theory this is possible. Though people have a tendency to find ways around restrictions! I'll explain.
In your document library - check the content types, you'll want to have a Document Set ...
3
votes
Accepted
How to get all Folders tree of a specific user with all the folders( or files ) permissions?
I'm not sure if you are using SharePoint server object model or CSOM, but idea is the same. You need to crawl everything starting from the site collection level, to subsite and then to document ...
3
votes
Accepted
How to create folder with custom Content Type in REST with SPFx?
You need to modify your existing endpoint include the details of the created folder by including select and expand OData operator as below:
"/_api/web/folders/add('${libraryName}/${clientName}')?
$...
3
votes
Can a user with Contribute in a folder add a document when they have r/o for the library?
Yes, this folder has now unique permissions and User X has now Contribute permissions here, so he can add, edit and delete files and folders.
3
votes
Delete folder with subfolder and files from SharePoint Online with a Macintosh
If you or your admin knows PowerShell, you can use the SharePoint PNP library to delete the folder:
#if not already installed
#install-module sharepointpnppowershellonline #requires PS 4.0 or later....
3
votes
Accepted
Will SharePoint automatically create intermediary folders when adding a file through the REST API?
Would SharePoint automatically create all three subfolders?
As per my analysis SharePoint REST API will not create all three subfolders automatically.
If folder1 is not exist in the document library ...
2
votes
Accepted
How get items in two subfolders?
Add to your code
query.ViewAttributes = "Scope=\"RecursiveAll\"";
Change your CAML to:
<Where>
<And>
<Or>
<Eq><FieldRef Name="FileDirRef" /><Value Type="...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
folder × 542document-library × 176
sharepoint-online × 113
permissions × 69
2013 × 52
2010 × 51
list × 33
content-type × 31
sharepoint-enterprise × 29
development × 26
powershell × 26
sharepoint-server × 24
rest × 24
workflow × 21
document-set × 21
file × 21
document × 20
csom × 18
subfolders × 18
client-object-model × 17
sharepoint-rest-api × 17
2007 × 16
sharepoint-foundation × 15
library × 15
web-part × 13