Always use File Chunking to Upload Files > 250 MB to SharePoint Online

This post is a contribution from Adam Burns, an engineer with the SharePoint Developer Support team Some developers may have been confused by some of the information available on blogs (and even on MSDN) about the upper limit of file sizes that can be programmatically uploaded to SharePoint Online using the SharePoint REST API. The…

0

Fixing error “The Request uses too many resources.” in CSOM / REST operation

This post is a contribution from Sohail Sayed, an engineer with the SharePoint Developer Support team You may occasionally run into the following error when calling a CSOM API in SharePoint Error : The Request uses too many resources. If you check the ULS logs you can see the below error Potentially excessive number of…

0

Trigger workflow for an item in the list by using CSOM. (env: SP 2013 on-prem, provider hosted app) and App Only will not work

This post is a contribution from Manish Joshi, an engineer with the SharePoint Developer Support team There seems to be a check in SharePoint when starting a workflow using CSOM if SharePoint 2013 workflow is started using the App-Only context – if yes, throw Access Denied exception and log this exception. So there is no…

0

Setup custom retention policy with custom Expiration Formula for custom Document Content Types in individual webs.

This post is a contribution from Manish Joshi, an engineer with the SharePoint Developer Support team Custom Formula is implemented with Class CustomFormula.cs, compiled to a custom assembly and consumed through the following method: Microsoft.Office.RecordsManagement.InformationPolicy.PolicyResourceCollection.Add(xmlExpirationFormula)   Following is sample code to install the custom formula string strExpirationFormulaID = “testCustomExpirationFormula”; string strExpirationFormulaName = “testCustomExpirationFormula”; string strExpirationFormulaDesc…

0

New CSOM API for SharePoint Server 2016 – Tenant.GetSiteProperties()

This post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team Like myself, many of you may like the SharePoint Online API GetSiteProperties that lists all site collections of a SharePoint Online tenant. Unfortunately, as you know, the method was only available to SharePoint Online, although the document does not…

5