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 ...
Thriggle's user avatar
  • 1,620
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 ...
Benny Skogberg's user avatar
  • 25.5k
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
theChrisKent's user avatar
  • 5,971
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?...
Vignesh Subramanian's user avatar
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 ...
Vadim Gremyachev's user avatar
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. ...
JoannaW_MSFT's user avatar
  • 6,611
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://...
Mohamed El-Qassas MVP's user avatar
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 ...
Mohamed El-Qassas MVP's user avatar
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 ...
Mohamed El-Qassas MVP's user avatar
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 ...
Atish Kumar Dipongkor's user avatar
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. ...
Atish Kumar Dipongkor's user avatar
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 ...
Waqas Sarwar MVP's user avatar
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 ...
Christoffer's user avatar
  • 9,721
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 ...
moe's user avatar
  • 5,267
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 ...
TARUN's user avatar
  • 2,836
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". ...
Sean's user avatar
  • 71
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 ...
Gaurravs's user avatar
  • 3,558
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 ...
Eric Alexander's user avatar
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 ...
Erin L's user avatar
  • 4,038
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)....
Aakash Maurya's user avatar
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. ...
Atish Kumar Dipongkor's user avatar
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 ...
Unnie's user avatar
  • 8,809
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 ...
Gautam Sheth's user avatar
  • 30.8k
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 ...
Aakash Maurya's user avatar
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 ...
Sivakumar Piratheeban's user avatar
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 = $("#...
Gautam Sheth's user avatar
  • 30.8k
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=...
Gopal Zadafiya's user avatar
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 ...
Dmitry Kozlov's user avatar
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. ...
Evariste's user avatar
  • 9,751
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 ...
users1100's user avatar
  • 3,230

Only top scored, non community-wiki answers of a minimum length are eligible