2022 Developer Survey is open! Take survey.

Hot answers tagged

11 votes

how to know Exact Document Library size

The code loops through entire site and gives the size of all document libraries. [System.reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) [System.Reflection.Assembly]::Load(“...
user avatar
  • 4,904
11 votes
Accepted

Hide/Remove the three little dots (Callout) in a library

Modify the view and select "Title" column instead of Title (linked to item with edit menu) . If you want Title column to be clickable, which opens the item itself then select Title (linked to item) ...
user avatar
  • 8,769
9 votes

Sharepoint Lists vs. Sharepoint Libraries

Great Info! In an attempt to make a more exhaustive comparison (because none exist!) here are a couple of things left out: List list attachments are not indexed. This has a lot of implications. When ...
user avatar
  • 502
9 votes

Is there a way to get all file URLs for a library with a single REST request?

At least three options are available: Option 1 Retrieve File Url via projected File object: /_api/Web/Lists/getByTitle('<list title>')/items?$select=File/ServerRelativeUrl&$expand=File ...
user avatar
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 ...
user avatar
  • 81
8 votes
Accepted

Identify if a Library item is a folder or not in CSOM

Your example contains the following errors/typos: To get fs object type use the following syntax: var fsObjType = selectedItem.get_fileSystemObjectType(); Another point is, ListItem object have ...
user avatar
8 votes
Accepted

Opening a document in a SharePoint 2013 document library in a new tab (using code)

A little JavaScript employing jQuery does the job just perfectly. $(document).ready( function () { // has to be on an interval for grouped doc libraries // where the actual links are ...
user avatar
  • 7,855
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 ...
user avatar
7 votes
Accepted

What are the criteria for the new mark on files in a library?

The default setting for SharePoint 2013 is two days, which you can check using this script: $WebApp = Get-SPWebApplication http://portal $WebApp.DaysToShowNewIndicator 2 You can change the number of ...
user avatar
  • 25.3k
6 votes

how to know Exact Document Library size

I created this simple PowerShell script to calculate for a single Document Library what the size in MB is for all the files inside: $total = $null; ((get-spweb http://WebApplication/SiteCollection/...
user avatar
  • 1,659
6 votes
Accepted

Move files into sub-folders in Library in SharePoint 2010

Copy the URL of the destination folder from the address bar. Navigate to where you see your document in the library. Either from the pulldown or by selecting the document and choosing Send To from ...
user avatar
  • 1,389
6 votes

Setting permission on folders and items of Document Library

Those groups will not be able to access the folders if the permission for the folder is broken and only the group "XYZ" has permissions to the folder and rest all are removed. UPDATE Sample ...
user avatar
6 votes

Is it possible to forbid download from libraries to some users?

Out of the box, this isn’t possible. You can, however, restrict both download and printing with Information Rights Management for all users, but not for a group of users. And since there is a snipping ...
user avatar
  • 25.3k
6 votes

Users can't open PDF after SP2016 March 2017 CU

Install the May 2017 PU and try that. There was a bug, though I thought it was exclusive to 2013 with opening files where the path contained a space.
user avatar
  • 28.8k
5 votes

how to know Exact Document Library size

Why not open the site in IE, open the library using "Open in Explorer Mode" from the ribbon, select all, right click and choose Properties, that should give you the actual size.
user avatar
5 votes

Making sharepoint Url Clickable

This is a file that's located on the server's file system. Microsoft definitely doesn't recommend changing this file for the following reasons: Having multiple web front ends means you will have to ...
user avatar
5 votes

Document Library Lookup Column

Lookup columns can only be based on 'Single line of text', 'Number' or 'Date and time' columns see Create list relationships by using unique and lookup columns So your only option would be to create a ...
user avatar
  • 32.3k
5 votes

Why can't I add a Document Content Type to my custom list

Document Content Types can not be added to custom lists. Documents and Folders both can have Item-Level permissions within Document Libraries. In SharePoint 2013, item-level permissions are managed ...
user avatar
  • 5,308
5 votes
Accepted

How to create a view thats filter a group or person type field

You have to use person/group field is equal to [Me], not contains. Even if the person/group field contains multiple users, it will still filter correctly when using is equal to [Me].
user avatar
4 votes

Move files into sub-folders in Library in SharePoint 2010

http://truapps.portalfront.com/how-to-copy-and-move-files-between-sharepoint-document-libraries-and-folders.html Select the Library tab > choose the > 'Open with Explorer' tab and it will allow you ...
user avatar
  • 41
4 votes

Making sharepoint Url Clickable

Can't you just click the actual link instead?
user avatar
  • 7,760
4 votes
Accepted

Can I hide the "new document or drag files here" link inside the wiki library

Probably the most simple option would be just to hide List View Toolbar Open the page in Edit Mode Go to XLV web part properties and specify Toolbar Type: No Toolbar That's it. P.S. Of course, you ...
user avatar
4 votes

Is there a way to get all file URLs for a library with a single REST request?

Assuming it's a Document Library, you can use $expand to bring information from the File along with the query Should be something like this: /sites/mysite/_api/web/lists/getbytitle('Rotating%...
user avatar
  • 1,699
4 votes
Accepted

New Documents added to Library requiring Title even though it is not marked as Required before they can be Checked In

I feel stupid answering my own question seven hours after posting, but in my efforts on another Subsite to Allow management of content types (Under Advanced Settings of a List) so I could hide the ...
user avatar
  • 81
4 votes

Unhide List/Library from Browser

You can unhide the hidden list with Sharepoint Designer. SP Designer -> All Files -> Lists -> on hidden list name folder right click and properties -> settings section -> uncheck Hide from browser
user avatar
  • 180
4 votes

Switch back to New Experience UI

I also wondered further about the session cookie making the classic user experience and it was cookie named "splnu" with value 0. By removing it and pressing refresh button it switched back to setting ...
user avatar
  • 239
4 votes

Why can't I add a Document Content Type to my custom list

You cannot add a document content type to a list, that is breaking the basic foundation of how SharePoint works, things are either a list item, or a file. To achieve what you want (list based item ...
user avatar
4 votes

How can I block a specific file (eg:PDF) in a library in SharePoint Online?

There is no OOTB facility with SharePoint Online to restrict specific file extensions in SharePoint Online. The only ways are: Create an event handler which will check the file extension. Create a ...
user avatar
3 votes
Accepted

Block overwrite in Site Assets Library?

Use a Custom Action with Location="ScriptLink" and inject jQuery/JS on the fly, which hides or uncheck the button by default
user avatar
3 votes

Have a web-part display only sub-folders?

There are couple of ways to achieve this like creating a view on the document library and applying the query/scope changes mentioned above to the definition in the new document library's view. You ...
user avatar
  • 7,855

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