1
vote
3answers
36 views

Programatically Modifying SharePoint List Item-level permissions using CSOM

I have a SharePoint 2013 (on-premises) document library named “Reports”. It inherits the parent site’s permissions (by default). It has a column named “AssignedTo” of type People or Groups (mandatory ...
0
votes
0answers
15 views

Issue in retrieving All users from a Person or Group type column using C# COM for each List Item

I have a requirement like this: There is a SharePoint 2013 document library, say, MyReports. MyReports has a column "AssignedToUsers" which is of type Person or Group (multiple selections enabled). ...
4
votes
2answers
66 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...
0
votes
0answers
48 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
0
votes
2answers
19 views

Enable editing docs but restrict uploading new docs - SP 2013

Im using SharePoint 2013 foundation. The site level users are stored in a custom sql datatable. Users can download documents in a document library via a web part link. (SPGridView link) Users should ...
0
votes
1answer
33 views

Add custom folder programatically to Document Library

I have a custom Document Library that has a custom content type which is an extension of a Folder (just adding some more fields). I'm trying to, in code, add a new item of this content type to the ...
0
votes
2answers
36 views

SP13: Opening PowerPoint Presentation into Slide Show

I am using SP13 and wanting to upload a PowerPoint presentation to document library. After I upload the document to the library I would like for the presentation to open into a slide show. I have ...
0
votes
1answer
137 views

How to get specific list items in Document Library subfolder?

I'm attempting to retrieve items from a subfolder in a document library. I must get these items where value is 'Like'. How can I do this via C# using the SP object model or by CAML query? this is ...
0
votes
1answer
38 views

SP13: Document Library Check-in/out settings

Recently our network went down and after it came back up a few of the document libraries lost its functionality. Prior to the shutdown, when an end-user checked out a pdf and made changes to the pdf ...
1
vote
0answers
31 views

File name of previous versions when versioning is on

How to get the file name of previous versions in a document library with versioning turned on. The OOB version history UI does not show the previous file name if the file name is changed. Suppose the ...
1
vote
1answer
544 views

SharePoint Foundation 2013 - Audit log

Can I read from audit log, how many times item has been clicked? I know that I can do it using Server edition, but what about Foundation? What I have done: Central Administration, I enabled Secure ...
0
votes
1answer
294 views

Code Download file from Doc icon image in sharepoint 2010

I have written code where it will show the Sharepoint document library in sp grid view. In the grid view it will show the doc icon Image correctly. Now i want to Download the uploade document from ...
1
vote
1answer
65 views

Add a folder to a document library and break permission inheritence

I have a web part that is being used to manually add folders to document libraries (Part of the requirements is that only administrators can add folders, contributors must only be able to add ...
0
votes
1answer
569 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
1
vote
1answer
94 views

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using

public void CheckOut()// CHECK OUT FUNCTION { try { string siteurl = ""; string filePath = ""; ClientContext context = new ClientContext(siteurl); context.Credentials = ...
1
vote
2answers
81 views

Update metadata on n amount of files at the same time programmatically, using SPListItem update methods or SPWeb update batch?

I need to update meta data on multiple files that exist on my SharePoint 2010 site. When starting the method that will update the metadata i do not know how many file that will need to be updated, ...
0
votes
1answer
3k views

How to get a document library URL from c# in visual web part?

I'm making a visual webpart in a sp2010 environment. I am trying to get the document library URL. I have this code so far: My variables are not getting the right values. Like the libraryURL, ...
0
votes
1answer
435 views

Build a visual web part that shows a document library

Ok so I need to build a visual web part (Has to be Server side and done in visual studio c#) that shows a document library. On selection of the document library, the web part must output the entire ...
1
vote
0answers
41 views

document sharing on sharepoint 2013

So I've been reading (and checking on my vm) that SharePoint 2013 has a built in capability to share documents with users inside and outside your organization without breaking the permission ...
1
vote
0answers
69 views

Changing a file in a document library with SharePoint web services

I'm trying to update a file in a document library using the SharePoint web service. The "CopyIntoItems" method from the "Copy" web service I use to upload new files returns an error if I try to ...
0
votes
1answer
118 views

SP 2010 Visual Webpart - How to get all documents in a folder and sort them by caml query?

I am making a visual web part for sharepoint 2010. I have a SPFolder object and I want to get all items in it, but I want to sort it by a specific field. I want to do this by CAML query instead of ...
2
votes
1answer
62 views

Error on updating a document item

I have an issue with updating an item in ItemUpdated event. Basically on ItemUpdated, I would like to reupdate that item by setting some properties, because it is a docx I have to do it in ...
0
votes
1answer
347 views

Problem with join two lists by linq

I wanna join two list and fill drop down list by specific column but i have error in join query note:c.user_id is lookup field my code lst.DataSource = (from c in dc.Complainant ...
0
votes
1answer
81 views

Custom form with link to document

I have a custom form. In it I need to add a link to a document library. I need that this links works in the same way as a link in a document library (i.e. - when you click on it you have the option to ...
0
votes
1answer
121 views

List with Page_Load event

For a project I'm working on, I'd like to get a Page_Load C# method behind a Document Library, but I've been unable to achieve this, so far. Any help would be greatly appreciated! Some details on ...
0
votes
2answers
934 views

How to open a file using Item Id in SharePoint document library?

I am working on SharePoint Foundation 2010. I want to open file from a link. I found a solution "Link To Document" content type. But in "Link To Document" content type we need filename of original ...
0
votes
2answers
54 views

Custom action with custom code doesn't work properly

I have an action in my document library, but it doesn't work as it supposed. So I have here definition of my custom action: <CustomAction Id="MyProject.Google" Title="Go to google" ...
0
votes
1answer
246 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
0
votes
1answer
322 views

file downloading in sharepoint

I've created a web-part. I've added few documents to it. I'm implementing download functionality. I want file download dialog. My code is like this. DownloadItem(SPListItem item) { // Get physical ...
0
votes
1answer
594 views

How do I get C# code behind a Document Library?

As part of an internship assignment, I'm working with SharePoint 2013. I'm completely new to SharePoint in general. Part of this assignment is a labeling system. The idea is that users can add labels ...
0
votes
3answers
624 views

Link to a document of shared document library

My specifications: Windows Server 2003 Visual Studio 2008 Windows Sharepoint Services 3.0 visual studio 2008 extension for Sharepoint services 3.0 I'm creating a web part with a SPGridView. I ...
2
votes
2answers
58 views

On AddingItem event in Document Library distinguish is it a document or a folder

enter code hereI have a small issue, I cannot seems to find a way to find out what time of item is being added, so i have a method AddingItem and here i need to know is this item a FOLDER or just some ...
6
votes
3answers
350 views

Filter out folders from a user alert against a list

I have created an alert for a user against a list (more specifically, a document library). I want the user to be notified of all changes regarding list items (documents) and not any sub folders. ...
2
votes
1answer
547 views

Why Item Updated and Item Added trigger together when we add a item to list (document library)

I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
2
votes
1answer
262 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
1
vote
1answer
106 views

Multiple files upload to document library simultaneously & Custom property

I have a custom SharePoint 2007 document library which has a custom boolean column "Is it Important". It works perfectly for all documents if I upload documents one by one regardless of if its a word ...
1
vote
1answer
49 views

Reupload the document (update)

I'm writing now code agains the document library, that code adds files to the document library. Basically what I want to do is, when the particular file already exists in the document library with the ...
2
votes
2answers
431 views

Updating a document library list ltem in ASP.NET code behind file

I am trying to update a list item's custom property in asp.net code behind file but getting Error 500 without any explanation or further error, while debugging I realized it happens while calling ...
4
votes
3answers
485 views

Add new Content Type to Multiple Document Libraries in SharePoint online(Office 365)

I have one Sample Document Library on SharePoint Online (office 365). this Library has 5 different document content type. And using this Library as a template i have created 300 new Document Libraries ...
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
0
votes
2answers
1k views

Add document to document library with more fields

My question is regarind adding a new item to document library programmatically. Basically, when I add an item to document library it goes as follows: In a document library i click add new and i ...
1
vote
3answers
624 views

Uploading xml to document library won't start workflow

When I upload an xml document to a document library, the workflow associated with that document library won't start. Here is my the code I use to upload: using (SPSite site = new ...
0
votes
2answers
516 views

The impact of BreakRoleInheritance()

I call BreakRoleInheritance on a document (the actual list item) in order to assign someone of less permissions the 'contribute' rights to that particular item. In doing that, have I 'broke' the ...
1
vote
1answer
616 views

Item-level permissions on document library

I ultimately want to grant users edit permission only on the items they created. According to this article: http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx I can do ...
1
vote
0answers
77 views

Hiding Custom Action for Just one document library

I have a custom action deployed for a site collection, now if I want to hide it for a custom document library is it possible. Also this is what I am doing actually, can you think a better way of ...
0
votes
1answer
219 views

Force Download pdf in document library programatically

I have document library with name "magazines". containing several pdfs, I'm using caml to view these items on one page pdfs. Added 2 links on this page to the user view pdf online, and to download. ...
2
votes
2answers
99 views

File size limit for a document in SharePoint is actual file size or file size on disk

The file size upload limit for a document is 50mb by default but is it file size of the document or file size of document on disk.
0
votes
1answer
300 views

Custom Actions all document libraries

I want to develop a "Custom Action" for all of document libraries in a site collection, I tried looking on Google but couldn't find any relevent tutorial. Custom action has to be in "Actions" and ...
0
votes
1answer
33 views

uploading a document to one location and have it replicated on other sites document library

What would be the best way of uploading a docuemnt to one location and have it replicated on other sites document library. I know I can use workflow, event receivers but then there will be ...
0
votes
1answer
36 views

removing or hiding option “Add new document” for a custom document library

I have a custom document library that "should only allow one user" to upload/Edit documents but let everyone else to download/View it. At the moment I got two events that are checking who is ...