21
votes
Clearing short term file lock
For the benefit of future generations, a file lock can be removed via Powershell on an on-premises installation of SharePoint 2010 or later.
How can this happen?
Files can get locked when a client ...
13
votes
Accepted
Lists or Managed meta data
It depends on a few basic factors that need to be answered first:
Will you use the same term store metadata anywhere else in the farm? You could have project numbers or contacts associated with other ...
13
votes
How to get a Download link for a document in SharePoint library for anonymous users
You should be able to add the query string parameter `Web=0'
For example:
https://sitename-my.sharepoint.com/personal/vignesh/Documents/SomePresentation.pptx?Web=0
13
votes
Accepted
How to get a Download link for a document in SharePoint library for anonymous users
To get the direct download link, you have to click on the document, get the share link which will look like below url
https://sitename-my.sharepoint.com/personal/xyz/_layouts/15/guestaccess.aspx?...
12
votes
Accepted
How to check if the file or folder exist in SharePoint document library using client object model?
The following extension method demonstrates how determine whether file exist or not:
using Microsoft.SharePoint.Client;
namespace SharePoint.Client.Extensions
{
public static class WebExtensions
...
11
votes
Accepted
Permission Level which doesn't allow renaming file in document library
There is no single permission to control Rename option.
But, if the user has Contribution permissions without Delete Item permission, he will get Access Denied when edit the name of the file. ...
10
votes
Accepted
How can I count Document library in Sites(SPWeb) Level?
No need for looping , just get the library at a specific site based on the base type equal to DocumentLibrary then get count of collection as the following :
using(SPSite site = new SPSite("https://...
10
votes
Accepted
Disable "new document" in document library for specific users
Yes, you can restrict a few users to upload or add a new document by managing unique permission for your library as the following:
Go to your library > Library Setting.
Click on Permissions for this ...
9
votes
Accepted
Open Document Library documents in a new tab
Follow the mentioned steps below :
Go to your document library page > edit page.
Add script editor web part
Add this code that tested and from my side (Code Ref : Opening a document in a SharePoint ...
8
votes
Accepted
Get Site Content Type ID by Content Type Name using REST API
You can get content type id from its name. Just you have to use $filter.
"/_api/web/AvailableContentTypes?$select=Name,Id,StringId&$filter=Name eq 'Your CT Name'"
Just make a GET request to the ...
8
votes
Difference between Wiki Library and Document Library
Difference in General
In wiki page library, people store wiki pages & web part pages (.aspx). It's an interconnected set of easily editable web pages, which can contain text, images and web parts.
...
8
votes
Accepted
The file is locked for exclusive use by same person SharePoint Online
Common reason for this type of error is
Either Document was open in the office Client program and some body working on it. Or client program was not close properly( terminate or crashed).
Windows ...
8
votes
How to hide columns of subfolders inside a library?
Go to advanced settings for the library and check "Per-Location View Settings".
Here you should be able to set that the top in your hierarchy only uses a view that shows the column, and then set ...
8
votes
Accepted
How do I create a upload button on SharePoint online
The upload form for a particular library can be accessed from
http://site/_layouts/Upload.aspx?List={ID to the library}
You can get the ID by e.g. going to the Document Library Settings, and the URL ...
8
votes
Document library custom button in ribbon
"Modern" list and libraries do not support as many customization options as "classic" lists and libraries. In this article we'll provide details and examples of the supported options. The SharePoint ...
7
votes
How to overwrite an existing document in SharePoint Library with a new document with different name?
Name the file you want to upload doc1.pdf. Go to "Upload" like you are adding a new file to the SharePoint folder. However, make sure the checkbox is selected "Add as a new version to existing files". ...
7
votes
Lists or Managed meta data
I would suggest Managed metadata..
Increase in list may lead to threshold limit issue.
Have look at this article stating pros and cons : MSDN
Added benefit to MMS is you can create labels to terms, so ...
7
votes
Document Content Types into Custom List
That isn't the way SharePoint works. Lists and libraries are the 2 basic storage mechanisms for things. You either create an entry (list) or upload a file (library).
If you want to upload files to a ...
7
votes
Accepted
Allow commenting on a document but not editing
You could require content approval and turn on track changes. (In Word 2013, you can require a password to turn off track changes.) Then the person who has to approve the document can accept or reject ...
7
votes
Accepted
Difference between Document Library and Form Library
Document Libraries in SharePoint consist of your main/core documents. For example a word document, excel, PowerPoint, Visio, pdf, csv, notepad etc.
Form libraries consist of XML forms (InfoPath Forms)....
7
votes
Accepted
Giving description to Name column Document Library
Name column is from Document content type. It is not editable from browser or designer.
See there is no link in the Name column. You will find the same thing in the SharePoint Designer also.
...
7
votes
Accepted
SharePoint 2013: Document Library permissions behavior
When breaking inheritance and granting permission to items, you should always use bottom up approach, where all users when moving from smaller units (item) to bigger units(folder or library) should ...
7
votes
What are the alternatives to InfoPath
Besides the above mentioned Infowise tools, another example of a paid tool would be Kintivo forms and Kwizcom forms
It allows drag-drop of fields to be displayed in the form as well as branching and ...
7
votes
Accepted
Online - Share list data between two sub sites
If both the subsites are in the same site/site collection then,
Just create a site column with lookup type and configure with the required list column.
Go in the document library setting and select ...
7
votes
Accepted
Copy files from one site collection to another - CSOM
public void CopyDocuments(string srcUrl, string destUrl, string destLibrary)
{
ClientContext srcContext = new ClientContext(srcUrl);
ClientContext destContext = new ...
7
votes
Accepted
Create text file and upload it to document library using REST API with JavaScript
Yes, its possible.
Try and modify the below code. Fill the content with data from your lists:
var content = "Hello, this text is inside the file created with REST API";
var digest = $("#...
7
votes
How to get the File Type of a File
You have to add one more attribute [File_x0020_Type] to your REST query select parameter :
_spPageContextInfo.siteAbsoluteUrl + /_api/web/lists/getbytitle('<list title>')/items?$select=...
7
votes
Accepted
The remote server returned an error: (401) Unauthorized: While uploading file in document library using App Based Token Authentication
The issue is that the SaveBinaryDirect method does not support app-based authentication. You should use either SharePointOnlineCredentials for your ClientContext or upload files with ...
6
votes
Accepted
Difference between Index column and simple column in SharePoint?
An indexed column in SharePoint makes sense to improve performance.
If your list contains a lot (~1000s) of records, and you often query (filter or sort) by a given column, you can index that column. ...
6
votes
Accepted
Get GUID of SharePoint list using jQuery
You can get it using REST query. The code should be:
$( document ).ready(function() {
GetListGuid('Lib1');
});
function GetListGuid(listTitle){
try {
//REST Query to get the List Title
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
document-library × 4003sharepoint-online × 944
2013 × 474
2010 × 345
sharepoint-enterprise × 327
permissions × 251
document × 246
sharepoint-server × 223
list × 204
folder × 176
content-type × 173
development × 160
powershell × 159
workflow × 149
modern-experience × 126
2007 × 125
sharepoint-foundation × 120
file-upload × 115
javascript × 114
sharepoint-designer × 110
versioning × 101
web-part × 98
document-set × 94
metadata × 86
office-365 × 83