Tag Info

Hot answers tagged

2

The context menus do not show this type of information. You may want to explore the "Most Popular Items" option in the Library Ribbon, Share & Track section and/or the Popularity Trends found in the Site Settings, Site Administration section. However, to get more specific details you will likely need to enable/setup auditing and examine those reports. ...


2

Please verify that you're using the Export-SPWeb and Import-SPWeb PowerShell cmdlets, with these arguments: -IncludeVersions All : To keep all files verions -IncludeUserSecurity : To keep permissions on files Example : Import-SPWeb "http://sharepointurl/subsite1" -ItemUrl "lists/MyList" -Path "C:\" -IncludeVersions All -IncludeUserSecurity Please ...


2

This solution worked for me private static void SetToolbarType(SPView spView, string toolBarType) { spView.GetType().InvokeMember("EnsureFullBlownXmlDocument", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.InvokeMethod, null, spView, null, System.Globalization.CultureInfo.CurrentCulture); PropertyInfo nodeProp = ...


2

The RunWithElevatedPrivileges code block has no effect in your case, as the item and web objects are created outside that scope. The folder objects you perform the MoveTo method on are received from the item, that is not "elevated". You should get site / web / list (etc.) objects you need to perform operations with elevated permissions to create within the ...


2

Working with lists and list items with REST url: http://site url/_api/web/lists method: POST body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 100, 'ContentTypesEnabled': true, 'Description': 'My list description', 'Title': 'Test' } Headers: Authorization: "Bearer " + accessToken X-RequestDigest: form digest ...


1

Your best bet would be using Event Receivers. That, though, requires developing a custom component. Here is a simple HOW-TO What you need is an ItemAdded event receiver, which would check the value of Management column and if it's true, the document would be copied to a different library. You can handle ItemUpdated event as well, if someone decides to ...


1

I have faced almost same issue due to list threshold limit when my items exceeded the limit to 50K while limit was only 5K (as by default). You have two options here. Disable throttling for the library. Create an indexed column and then use that column in your custom view as a filtering column. Creating index column may take some time based on data ...


1

Include this Paged="TRUE" into RowLimit tag, that would be like as <RowLimit Paged="TRUE">30</RowLimit>.


1

The problem with your hide custom action is that the Rights attribute says that the custom action must be active for every user having the ViewListItems permission, even if they have further permissions (like EditListItems) as well. AFAIK, there is no declarative way to restrict the custom action using sime kind of exclusive OR (XOR), for example, for ...


1

Granular restore operations require the use of Powershell as no UI in Central Administrator exists. This cmdlet is used to restore sites, list, and libraries exported with “export site or list” option in central administrator or using export-spweb cmdlet. For Example: import-spweb -identity http://contosoweb/ -path \\appserver\bu\list.cmp Note: You ...


1

If you just want to change the toolbar type.Here is simple code for you Code Block lMgr =OpenWebPartManager("Default.Aspx"); // Get web Part wp = lMgr.WebParts[wp.ID] as WebPart; ListViewWebPart lv = (ListViewWebPart)wp; // Extract view System.Reflection.PropertyInfo ViewProp = lv.GetType().GetProperty("View", System.Reflection.BindingFlags.NonPublic | ...


1

There is nothing in the SharePoint REST API which allows you to create a file using a template. You will have to create new file (empty) or with at least one page. Then set the metadata including the contentTypeId. The following link shows how to do this without creating more than one version if you have versioning on. You can adjust the code to include the ...


1

For 2) you can create a custom permission level - contribute but not delete. Assign that to folders 1 & 2. Should work as required


1

If I understood your requirements correctly, the only way to achieve this is with an event handler. This will require some development effort as it is not possible with the OOTB features of SharePoint, however it is really easy to accomplish.


1

You can definitely do this by breaking the permissions of your subfolders. If you set Folder 1 and 2 to view only you can then open the subfolder and break the permission inheritance from the ribbon. You can then grant access to users or groups at the appropriate access level (Contribute should do it). Updated your diagram below. Root |---- Folder 1 ...


1

You should load the items before using it. $items = $list.Items $ctx.Load($items) $ctx.ExecuteQuery() foreach ($item2 in $items) { #list the items/documents in the document library write-host $item2.Title } For Inheriting Permission you can use ResetRoleInheritance $item2.ResetRoleInheritance()


1

you can consider 3-rd party solution. For example from VirtoSoftware - Bulk File Upload



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