New answers tagged

0

Take a look here for the CSOM PowerShell to download files from SPO https://gallery.technet.microsoft.com/scriptcenter/How-to-automactically-1bc0ddd6 or use OfficeDevPnP PowerShell https://github.com/OfficeDev/PnP-PowerShell highly recommended!


1

I tested your script and found the problem. The answer is here http://stackoverflow.com/questions/35225511/sharepoint-csom-copy-roleassignment your last lines should be: # Apply the permission roles to the list. $clientContext.Load($folder1.ListItemAllFields.RoleAssignments.Add($usr, $usrRole)) ...


0

Found the solution here - Unable to create a site column based on the Managed metadata type? My issue was resolve by granting permissions to users in the hidden Taxonomy list, which can be browsed by putting this on the end of your Site Collection URL Lists/TaxonomyHiddenList/ I added all users with Read Permissions and now it works as expected for ...


0

Please check this: http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html I get the department with this script: <script type="text/javascript"> $(document).ready(function() { var loginName = ""; var userid = _spPageContextInfo.userId; function GetCurrentUser() { var requestUri = _spPageContextInfo.webAbsoluteUrl + ...


0

If you haven't checked your second stage recycle bin, kindly do so . Else open up SharePoint Designer to the site in question, go to the list or library, rename the folder, then delete.


0

There are ways to disable multiple document upload option using SPD after modifying in masterpage and applying some of the javascript code that including hide or delete multiple upload option. Please go through this article How to Disable Multiple File Upload in SharePoint and let me know is it the right approach for you?.


1

Instead of going with easy approach you should choose best practice. This will help in the long run. Best practice is to create Content Types and add it to the document library. So first create a Document Content Type and add the required fields (site columns).


1

There is no inbuilt mechanism say OOTB facility to do such task. But still you can do this with little bit of lazy steps. Or also you can go with C# custom solution. For detail information of converting custom list to Document Library you can go with this SharePoint - Convert a list to a library once. Also if you have document attached in your current ...


0

If you do not want to wait 10 minutes, the real solution is here https://sharepointobservations.wordpress.com/2013/09/10/remove-sharepoint-client-side-file-lock/


1

You can use SharePoint Column type "Publishing Hyperlink" and you can directly provide provision to user to upload attachments from SharePoint Itself. Publishing must be enabled by a site collection administrator for these column types to appear. To enable publishing, go to Settings Small Settings gear that took the place of Site Settings.> Site Settings. ...


0

Simplify your life. Use a common Content Type for all 4 libraries. Then create a Result Source like ContentType=MyContent. Then apply the query to the Result Source. If you cannot create the result source then just add that query to your web part or rule. If you can't or won't create the Content Type then you can use Path, but IMHO that's yucky.


0

If you are on SharePoint online or 2013 try creating a search result source: https://support.office.com/en-us/article/Manage-result-sources-fd8d6ac6-c5d0-454d-80a9-51580902b25d. This allows you to transform your search query so that only the metadata field is search, which should result only in items from your document libraries. There are also other options ...


1

For external users, you may want to look into ACS, which you can configure to use Microsoft Accounts, Facebook, and a few others. An example reference can be found at https://blogs.technet.microsoft.com/meacoex/2013/12/25/authenticate-your-sharepoint-website-users-with-facebook/. This in and of itself is a deep topic you will want to do research on. For ...


3

Break permission inheritance of that document library. Remove other users. Then only assign permission to the owners. This will hide the library from other users.


0

One of your content types may have required field, especially default content type "Document". I changed required field to optional and it worked for me.


0

I've recently had the same need. Unfortunately, I think there's no way to create a new document using REST, because you actually have to UPLOAD something. In my solution, I made a copy of the template and uploaded it to the library. var templateString = 'yourSite/pathToTemplate/templateName.docx'; var newDocString = ...


0

This problems occurs because if any of the content type has required fields and donot containe default value. the document is automatically checked out. Remove the required fields in all content types and upload it will definelty works.


0

I had a similar requirement but decided to generate the Excel and later Word file using javascript. I don't have any examples for generating the excel file. What I do remember is that the basic plugins I used were transforming HTML into Excel which made Excel think that the file was a webpage (received html extension when saved without changing the file ...


2

On your SPQuery object, you can set the scope in the ViewAttributes property, as documented here: https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spquery.viewattributes.aspx ... SPQuery spQuery_temp = new SPQuery(); spQuery_temp.Query = "<OrderBy><FieldRef Name='Modified' Ascending='False' /></OrderBy>"; ...


2

try this one: SPSite site = SPContext.Current.Site; SPWeb web = SPContext.Current.Web; SPList list = web.Lists[“Shared Documents”]; SPQuery query = new SPQuery(); //Condition to check the item type is folder or not query.Query = “<Where><Eq><FieldRef Name=’FSObjType’/><Value ...


1

Another option could be a content query web part. You can configure the web part to get documents from your library and apply condition to show recently modified documents. You can point web part to a document library in parent site or even in sub site. This web part is also OOTB web part.


0

The issue is resolved, I just publish the page as a major. Then the WebPart is displayed.


0

A list and a library are two different things. If you attach a document to a list item, it will be stored as an attachment in the list item, not in a document library. You may want to edit your question and explain what you would like to achieve. It seems that there is some misconception of SharePoint concepts, or of the terminology.


0

Just fixed an issue like this at work. Had to re-create the user's Windows profile. He was able to see the documents in Chrome, but not Internet Explorer. He could also see them through IE when logged in on another computer so we knew it wasn't a permissions issue.


2

The Windows Explorer view of SharePoint does not support views defined in SharePoint. Explorer view will simply shows the folders and documents present in SharePoint and ignore any views defined in SharePoint. Paul


0

We've build a "fix" for this problem. If someone is still looking for reliable solution that will generally solve this, let me know.


2

Using below mentioned functions you can upload document to Document library. Here you need to change the below mentioned code according to your needs like here it is mentioned document library name as "Project Documents" so please change it with your library name. You have to make three calls. The first uploads the file, the second retrieves the list item ...


2

Yes it is possible to create *.docx file in document library using REST services. For more detail you can refer this MSDN article Files and folders REST API reference Let me know whether this helped you. Thanks


0

You can enable auditing for each site collection for which you want to collect data. Instructions for doing so are available at https://support.office.com/en-gb/article/Configure-audit-settings-for-a-site-collection-a9920c97-38c0-44f2-8bcb-4cf1e2ae22d2 This provides data on (depending upon what you enable): Documents being opened or downloaded, list items ...


0

You can leverage the new Security events introduced in SharePoint 2013. On every GroupUserAdded, GroupUserDeleted, RoleAssignmentAdded, RoleAssignmentDeleted event you can add an entry to a list or database that will help you track the sharing of document. Security events available to leverage in SharePoint 2013 are given here. A tutorial on how to do ...


-1

You could also try the "Sharevoyance Comments" app for SharePoint online and SharePoint 2013 on-premise. This app allows you to click on your documents in a tree view, and then see everyone's comments in a central location. This may be preferable to the built-in functionality. Here's a link to the Office store: ...


0

List , Access services is the only solution for your case Just copy your excel worksheet and paste it into Acces db as a table then create webform for this tabe finaly share and sync your db file to sharepoint site


0

Some Jquery might help you out here...Try this link...let us know if it works http://stackoverflow.com/questions/12092735/refresh-scroll-to-bottom


1

The URL changes when user clicks on the folder. It means the page always refresh after clicking on the folder in Document Library. It is the default behavior of SharePoint.


0

Try to alter the width of the Webpart or add the same number columns as in your All Documents view so that the width will be adjusted.


3

Document library require content types that are inherited from Document Content Type. This is required because it needs a File field to store the file data. In case of Custom List, it is just like an Excel File with columns (Meta data) and don't require a mandatory File object (in case of doc lib) Also I don't think its a good design to have both using the ...


0

I think that OfficialFile.asmx requires the document routing feature to be enabled on the receiving site, try enabling the Content Organiser feature on the SPWeb.


0

Judging from your other questions, you may have moved on, but here is another key that may help. Make a choice column with 3 radio buttons NO,DISCUSS,YES with default of NO. Make a SPD workflow that writes the URL of the edit form in a hyperlink column on new item creation. (optional for list views) Make sure you point the CEO to the edit form link in all ...


0

It looks like something was fundamentally wrong with this library so I just bit the bullet and deleted it. I re-added it and now it seems to be working. No idea what was wrong with it, but I sincerely appreciate all your guys' help! Thank you!


0

Modify the view, or create a new view, and ensure that the column "Name (linked to document with edit menu)" is visible in the view. See screenshot below.


0

Probably missing a column in the view that allows the selection box. Also, the url for a view is set at the time of creation. It would be best to recreate a view with the name "CompanyLibrary" and delete the old one. You could even use the old one as a basis.


0

JavaScript solution for SharePoint 2013 In SP.UI.Dialog, there is a function to close a dialog : commonModalDialogClose Takes two parameters, commonModalDialogClose(dialogResult, returnValue) dialogResult is an enum (here is an extract from SP.UI.Dialog.js : SP.UI.DialogResult.prototype = { invalid: -1, cancel: 0, OK: 1 }; Solution : When ...


2

yes...there are two ways.. one is via coding where if login users are same as CreatedBy field than the documents will be visible or if user is with Owner access he will be able to see the documents. second is via out of box...create two views... One view display all documents and set its Audience Target to be only Owners... And create a second view where ...


2

You should be able to use SharePoint's draft item security here. Within the document library settings, select versioning settings then select the following: Require content approval for submitted items - yes Create major and minor (draft) versions Under draft item security select 'only users can approve items (and the author of the item). Ensure that ...


1

I guess creating documents based on a template is not available in JSOM, however you can create such documents within a SP Lib, by directly using Office API method baked in SP core.js. Creating Documents via the Web App CoreInvoke('createNewDocumentWithRedirect2', event, '[template URL]', 'http://[server]' + (ctx.rootFolder == '' ? ctx.listUrlDir : ...


0

Try look into this Change the 'Trust Center' Settings: Sometimes, the enabled protected view settings under 'Trust Center' prevent the Word file from opening. Mentioned below are the steps to change the settings of 'Trust Center': Open your MS Word application. Click 'File >> Options'. Select the 'Trust Center' and press button under 'Trust Center ...


1

The total URL length limit is 256 characters - SharePoint won't allow you to upload a file or folder if the total URL length exceeds that. Note: There is no workaround to increase this Character limit for the files and folders.


2

There is no way to get around the limitation, but there is a tool that Microsoft gives you to shorten files and folders, and if it can't, will rename the file/folder to something like "Invalid". https://support.microsoft.com/en-us/kb/2933738 Alternatively, you can write a PowerShell script to rename any file/folder to a lesser limit, possibly by cutting ...


0

You can do it with HTML in Calculated Columns in SharePoint 2010 without any extra code. But you have to built it step by step; and may have to adept it to your needs http://viewmaster365.com/#/Create/Priority And before the police complains you can't paste links as answers... eventually you will have: ="<div style=""display:inline-flex;"">" ...


0

You haven't mentioned which SharePoint version you are using, I assume its SharePoint 2013,Office 365 or above. You can use JSLink in your list view and achieve the required functionality. More details on JSLink can be found below, http://www.sharepointnutsandbolts.com/2013/01/using-jslink-to-change-ui-of-sharepoint_20.html ...



Top 50 recent answers are included