35
votes
Which special Characters are not Allowed in SharePoint 2013\2016 Files\Folders?
You cannot use the following characters in file/folder name:
Tilde (~)
Number sign (#)
Percent (%)
Ampersand (&)
Asterisk (*)
Braces ({ })
Backslash (\)
Colon (:)
Angle brackets (< >)
...
18
votes
Accepted
Which special Characters are not Allowed in SharePoint 2013\2016 Files\Folders?
~, #, %, & , *, {, }, \, :, <, >, ?, /, |, "
above special character is not allowed for files/folder.. you need to replace these characters for create folder or files..
11
votes
Folder creation in Document library using listdata.svc
This took forever to figure out, but of course it is simple once you got it.
Instead of pasting a bunch of code, here is the context and then the raw HTTP POST request that I ended up with.
The ...
11
votes
How to get all the files inside the folder in list
Run this code. I have taken "filename" as a folder - you can replace it with any folder name that you want.
ClientContext cxt = new ClientContext("http://win-8c97ll22qqc:100/sites/dev");
List list = ...
9
votes
Should we create large number of folders within a list?
I would suggest you create different content type or use the tagging feature to organize the items.
Check this for the list of Pros and Cons
http://social.technet.microsoft.com/wiki/contents/...
8
votes
SP2010: Use Workflow to move library item into folder
I know this is an old thread, but after spending a good while looking about I found an OOTB SharePoint Designer 2010 solution for this problem.
To move a document to a different folder
create an ...
7
votes
Accepted
Update folder name using REST API
SP.Folder.name property is read-only and hence it could not be used in update operation.
How to rename Folder using SharePoint 2013 REST
The following example demonstrates how to rename Folder ...
7
votes
Accepted
Folders in document libraries: how to navigate back up to parent folder (web part on page)?
See SharePoint Document Library List View Web Part with Clickable Breadcrumbs
Excerpt from article:
The first step is to create a text file that will contain the javascript necessary to ...
7
votes
Which special Characters are not Allowed in SharePoint 2013\2016 Files\Folders?
Not to resurrect an old thread but I thought I would add my regex. One issue from KB905231 it is not clear if the prohibited file suffixes (i.e. .files or _files, etc.) are including or excluding the ...
7
votes
How to display item count of specific folder in list
SharePoint contains a hidden Site Column called ItemChildCount. This Site Column stores the calculated number of child items that the folder contains.
Note: It does not include the number of ...
7
votes
Retrieve folders and sub folders from document library by REST call
You could utilize GetItems method and specify the following query:
<View Scope="RecursiveAll">
<Query>
<Where>
<Eq>
<FieldRef Name="...
7
votes
Retrieve folders and sub folders from document library by REST call
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 ...
7
votes
Get sub folder from document library using SharePoint.Client.dll
Folders are items as well. Just get the item and load the folder property.
using (var ctx = new ClientContext(Constants.SharePointUri))
{
var list = ctx.Site.RootWeb.Lists.GetByTitle(Constants....
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....
6
votes
Accepted
loop splistitem in folder in powershell
The objects you get from $list.Folders are SPListItems not SPFolders so the ListItems property gives the Lists ListItemCollection not something for the folder.
To get the SPFolder you have to access $...
6
votes
Use workflow to move document within document library to different folder in same library
I found the solution myself and thought I would share the solution in case someone else encounters a similar challenge.
By using the "Update Item" functionality in SPD you can assign the name of the ...
6
votes
Accepted
Working with document Libraries based on UniqueID REST API
Sure, SP.Web object in SharePoint 2013/Online exposes the following methods:
1) Web.GetFolderById
REST endpoint: /_api/web/GetFolderById('<folder unique id>')
2) Web.GetFileById
REST ...
6
votes
Accepted
Add Folder to Document Library
You most likely mean a folder inside a document library, because you cannot add a folder to a site that is available for end-users. In order to add a folder inside a document library, you need to open ...
6
votes
Accepted
How to create a Shared Folder using Powershell and set permissions
here is the Create folder command:
New-Item "C:\Shared" –type directory
If you are creating multiple levels at once (like "C:\NewRootFolder\NewChildFolder\NewShared" you can add the –force switch to ...
6
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 ...
5
votes
How do you move a folder into another folder
Use windows explorer, in 2010/2013 it's found on the library tab of the library (and only works in IE on windows)
5
votes
Document Library WebPart open to specific folder
Adding to jkandiko's answer (which worked for me),
If the URL of the page containing your document list web part is http://www.mySharePoint.com/SitePages/Home.aspx, append the text ?RootFolder=((...
5
votes
Accepted
Copy Document Set from 2010 to 2013
Set the DocumentSet.Folder.Item.ProgId to "SharePoint.DocumentSet". Right now it will be empty. See this for more information:
http://www.sharepointnadeem.com/2011/08/sharepoint-2010-document-sets....
5
votes
Accepted
How to get ItemChildCount of DocumentSet (folder) using REST Api
You have to expand folder with $expand=Folder property and use ItemCount property of the folder like this:
/_api/web/lists/getbytitle('your_list')/?items$select=ID,Title,Folder/ItemCount&$expand=...
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
When I create a folder programmatically get the error "Invalid item data -- missing FileRef"
Yet another version how to create a folder including nested folders using SharePoint SSOM.
How to create nested Folder using SharePoint SSOM
internal static class SPFolderExtensions
{
/// <...
4
votes
Uploading a complete folder in Sharepoint 2013
What about "open with Explorer" and then drag and drop your structure?
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
folder × 529document-library × 164
sharepoint-online × 100
permissions × 68
2013 × 51
2010 × 50
content-type × 32
list × 31
sharepoint-enterprise × 29
powershell × 27
development × 25
rest × 24
workflow × 21
document-set × 21
file × 21
sharepoint-server × 19
csom × 18
document × 18
subfolders × 18
client-object-model × 17
2007 × 16
sharepoint-foundation × 15
library × 15
sharepoint-rest-api × 14
web-part × 13