Hot answers tagged

5

You can use below PowerShell command to set Require Check Out feature on each document library on all sites foreach ($web in (Get-SPSite -Limit All | Get-SPWeb -Limit All)) { Write-Host “Processing Web: $($web.Url)…” foreach ($list in ($web.Lists | ? {$_ -is [Microsoft.SharePoint.SPDocumentLibrary]})) { $...


3

You can easily do it with PowerShell script.It is having attribute $list.ForceCheckout = $true for more reference you can refer this Change SharePoint list settings using PowerShell - Part 1: General and Versioning Please let me know if it help you. Thanks


3

For the first error, in SharePoint online there is no direct command to Get-SPWeb , you should use SharePoint Client Side model as shown below: function Get-SPOWebs($url){ #fill metadata information to the client context variable $context = New-Object Microsoft.SharePoint.Client.ClientContext($url) $context.Credentials = $SPOcredentials $web = $context....


2

As you are hitting the server to frequently to Add items, SharePoint sometimes do stop the execution in between. I faced the similar issue when i was deleting items from the list. Your code is fine, I would suggest you to add a few moments of delay after adding like 50/100 items. Its even better if you can do an asynchronous loop but it will require you to ...


2

Rupesh, You need to use ProcessBatchData for your scenario if you can use server side code. If you want to use only CSOM the below code works just fine. I have tested it already $(document).ready(function() { ExecuteOrDelayUntilScriptLoaded(abc, "sp.js"); }); function abc() { context = new SP.ClientContext....


2

Try to add date in following format $converteddate = "{0:MMM dd}" -f [datetime]$birthdate


2

First you need to refer SharePoint client dlls Add-Type -Path "\\Microsoft.SharePoint.Client.dll" Add-Type -Path "\Microsoft.SharePoint.Client.Runtime.dll" #next pass the credentials and connect to web $siteURL = "" $userName = "" $PlainPassword = "" $password = $PlainPassword | ConvertTo-SecureString -AsPlainText -Force # set SharePoint ...


1

This does not give you the limits but maybe a solution for your problem. The bulk limits for SharePoint 2013 is 100 items per operation so i guess it is around that number in Online aswell. SharePoint 2013 Software boundaries But to resolve your problem try extending the RequestTimeout for your context. MSDN article explaining RequestTimeout. But as you ...


1

It is explicitly not supported to update the SharePoint databases directly! DO NOT do this! In this situation, PowerShell is your friend. Look into an example such as those on http://www.sharepointdiary.com as a good starting place.


1

SharePoint cares deeply about the unique document names, but any programmatic updates would require you to also export the IDs so that you can use them for import. Document metadata can be added very much like you would update a regular list. Manual options: Open each document properties and add the data manually... just kidding. I would update a few ...


1

Again thank you Viraj, I have added the solution here which has been scripted to extract from SharePoint 2016 and insert into SharePoint Online with no user interaction needed (other than basic variable setup) and into the correct format on my Github In proper prospects of a answer the format I needed was MM/DD/YYYY.


1

Bulk Operations are against data. In case of list you can simply use the Delete method associated with the list object. I am not sure how you are find the lists. I would prefer below approach $webs = (Get-SPSite -limit all | Get-SPWeb -Limit all -ErrorAction SilentlyContinue) if($webs.count -ge 1 -OR $webs.count -eq $null) { foreach($web in $webs)...


1

With Microsoft Access you can link all 3 SharePoints lists, built a Query and Export whatever you want


1

First error message is probably because you have missed a mandatory column in the view. So when you try to add items, the mandatory field will not get any value and you will not be able to add the item Second could be due to a mandatory field missing, or could be due to one of the missing fields with both data validation and a default value (that fails the ...


1

Click Site Actions, and then click Mange Content and Structure. select your list select some items, in actions menu click 'delete'


1

You can do it with PowerShell, from here you can see examples how to update list item values from csv file: http://social.technet.microsoft.com/wiki/contents/articles/25125.sharepoint-2013-powershell-to-copy-or-update-list-items-across-sharepoint-sites-and-farms.aspx


1

Open your SharePoint list in a datasheet view (you can also edit from here), this opens your list in a datasheet with all the records from your list which will be easy for bulk updates and copies. Make sure your Web browser supports ActiveX controls.


1

When you are adding an item it updates the list item only once. But if you are using the ItemAdded there is another update happen on each list item in order to complete the whole operation. From performance perspective it is bad, but it is safe. Mean I also have seen this. Might be your environment has many event receivers. Try debugging and ensure every ...


1

Have you thought about using Document sets? You could upload all of your files into a Document set and then Send that single item to the destination.


1

What about to create small console share point application? you can use this info to do that: http://apmblog.compuware.com/2009/01/20/sharepoint-using-batch-updates-to-speed-up-performance/ http://msdn.microsoft.com/en-us/library/cc404818%28v=office.12%29.aspx


1

I found this solution using MS Access- SharePoint this might be useful for someone - http://sharepointlogics.com/2014/07/how-to-import-excel-spreadsheet-to.html


1

Unfortunately, there is no support for setting up metadata to multiple files at the time of uploading to SharePoint. However, you can use SharePoint 2010 Batch Edit for bulk updating managed metadata using the SharePoint ribbon. In SharePoint 2013, the datasheet view functionality can even edit/update managed metadata columns. The purpose is enable the ...


1

Just to understand correctly, do you want to use the CSV file to provide metadata for the files that will be imported from the file share? If so, the approach depicted in the article (SPJeff) will not work. This sample uses a SP list as destination (as opposed to a SP library which is needed to support files). Look at this article in Code Project (http://...


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