Questions tagged [sharepointdocumentlibrary]

A document library is a place on a SharePoint site where users can create, collect, and update files with others. The libraries may be custom modified and allow different access levels.

A document library is a place on either a SharePoint Online or Sharepoint Server site where users can create, collect, and update files with others.
The libraries may undergo custom modifications:

Access to the library is granted on the basis of permissions which can be granted to internal Sharepoint users or external. The permissions have different levels, such as read-only and contribute: http://office.microsoft.com/en-001/windows-sharepoint-services-help/permission-levels-and-permissions-HA010100149.aspx

Access to the library may be granted for a document, list item or a whole folder: http://office.microsoft.com/en-001/sharepoint-server-help/manage-permissions-for-a-list-library-folder-document-or-list-item-HA010021564.aspx

You may also grant access to external users (given right permissions) http://office.microsoft.com/en-001/sharepoint-server-help/sharepoint-document-libraries-i-introduction-to-sharing-files-RZ010234528.aspx?section=3

Sharepoint libraries accept selected file types and some document types, like .aspx may be added to a Sharepoint library: http://office.microsoft.com/en-001/office365-sharepoint-online-small-business-help/types-of-files-that-cannot-be-added-to-a-list-or-library-HA101907868.aspx

Their content may be accessed by apps you are developing, e.g. using NAPA, Visual Studio: http://msdn.microsoft.com/en-us/library/office/fp179930.aspx

182 questions
2
votes
1 answer

NullreferenceException when opening SharePoint Document Library

After running the Configuration Wizard in SharePoint 2010 (had to do this because of permission issues) I cannot open any Document Library like "Pages". I receive the following Error: [NullReferenceException: Object reference not set to an instance…
2
votes
4 answers

Create a document library with external persistence

I would like to create a custom document library where I use the standard UI but implement a different persistence layer. Basically fetch and display documents from a different source system. This way I can use my existing object model but leverage…
1
vote
1 answer

workflow or EventListener

We are building an extranet sharepoint portal for our clients. Each client will have a site. Total number of sites will be between 2000-3000. I have a requirement to copy a document from a SiteCollectionA/SiteA/DocumentLibrary to another global list…
1
vote
1 answer

Enable the "Make "New Folder" command available?" option with Sharepoint using @pnp/sp

I need to create folder under Site Pages library under SharePoint Online site. I have tried to create the folder programmatically using @pnp/sp library. But it thrown me Access Denied error. New Folder option is missing while click on New. Please…
1
vote
1 answer

Default save location not document library where file generated from

We're using SharePoint Online and noticed a peculiarity when creating documents from the document library's 'New' menu option. Our document libraries have been configured with the "Open Documents in Client Applications by Default" enabled. When we…
Steven C
  • 115
  • 2
  • 10
1
vote
1 answer

Unable to copy file from SharePoint different site document library with sp-pnp-js

I need to copy a file from one SharePoint online site document library to another SharePoint online document library under the same tenant. I have used "sp-pnp-js": "^3.0.10" in my solution. Below is my code snippet, // let sourceFIleUrl =…
1
vote
1 answer

Using PowerShell to call the GraphAPI and create a folder in a SharePoint document library

So I am trying to create a new folder in a SharePoint library using Graph API. I can get the access token just fine, but whenever I send a request to create a new folder, I get (400) bad request. Here is my code, any help would be much…
1
vote
0 answers

How to determine the root cause of the error that occurs while creating documentset using /_vti_bin/listdata.svc endpoint in SharePointOnline?

While trying to create a DocumentSet with a name that already exists in DocumentLibrary using /_vti_bin/listdata.svc (SPO) a 500 internal server exception is thrown. I understand the reason for the exception, but 500 internal error can be thrown…
user527614
  • 465
  • 5
  • 19
1
vote
0 answers

Copying file on SharePoint using Graph API/SDK doesn't work with unique fields

I'm trying to copy a file within a document library (SharePoint online) via the Graph SDK. However the document library have a custom unique field. The file is copied to the same folder. await client .Drives[driveId] .Items[sourceItemId] …
1
vote
1 answer

Delete locked/open file via Graph API/SDK

I'm trying to delete a file in a document library (SharePoint online) via the Graph SDK await client .Drives[driveId] .Items[sourceItemId] .Request() .DeleteAsync(); This work. But if the file is open it'll throw this error: Status…
1
vote
1 answer

Upload file to a subfolder in Sharepoint with office365 API

I am trying to upload a file to sharepoint folder. I got the following code working that just uploads the files to the root documents directory. But I want it to upload to a specific directory in the sharepoint. Variables: fullurl =…
1
vote
0 answers

Best way to update documents metadata in a Sharepoint 2013 Document Library, through REST API

In a web application I am rendering a list of documents coming from a Sharepoint 2013 Document Library (the number of documents can vary, approximately, from 5 to 50). The user needs to be able to sort this documents from inside the application, and…
1
vote
1 answer

Is there a way to create a sharepoint document library view using an IF statement that uses metadata?

I am trying to create a view from a sharepoint server 2016 document library that goes IF((criteria A = "X" AND criteria B= "Y"), show documents under criteria C). Some documents in the library have a value for criteria A & B, but all documents have…
1
vote
0 answers

Need help in constructing Microsoft Graph API url

I am trying to access files from DocumentLibrarie (DL) available in SharePoint online using Graph API. As per Microsoft's Graph API documentation this needs to be done using {driveId}. To fetch the driveId i am using user-friendly DL name, as…
user527614
  • 465
  • 5
  • 19
1
vote
0 answers

How to maintain the appropriate file type (MIME) when moving a documents (pdf, xls) from one library to another

I have a workflow that I created in moving a document from one library to another library and it works fine for word documents, but when moving excel or PDF files, the file is moved, but the filetype seems to be a word file type. I am using Create…
1 2
3
12 13