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…

0

Integrating Custom Identity provider with Asp.net and Provider hosted apps to achieve single sign on with Forms Based Authentication

This post is a contribution from Sohail Sayed, an engineer with the SharePoint Developer Support team We demonstrated creating a custom identity provider and integrating it with SharePoint to achieve single sign on in the blog post https://blogs.technet.microsoft.com/sharepointdevelopersupport/2017/07/07/creating-a-custom-identity-provider-and-integrating-with-sharepoint-to-achieve-single-sign-on-with-fba-across-multiple-web-applications/. In this blog we will demonstrate integrating the custom identity provider with Asp.Net web sites and Provider hosted…

0

Creating a Custom Identity Provider and integrating with SharePoint to achieve single sign on with FBA across multiple web applications

This post is a contribution from Sohail Sayed, an engineer with the SharePoint Developer Support team We had a scenario where we needed to use Forms Based Authentication with SharePoint and at the same time have single sign on across multiple web applications. Configuring FBA with SharePoint can be easily achieved through membership and role provider…

0

Fixing issue in making cross domain Ajax call to SharePoint REST service in Chrome

This post is a contribution from Jing Wang, an engineer with the SharePoint Developer Support team Symptom: Remote Ajax Application is configured with Windows Authentication. It makes XMLHttpRequest to SharePoint 2013 Web Service, listdata.svc. Sample code: <!DOCTYPE html> <html> <head> <script src=”http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js” type=”text/javascript” ></script> <script src=”http://code.jquery.com/jquery-1.9.1.js” type=”text/javascript” ></script> </head> <body> <h1>test page</h1> <script type=”text/javascript”> //Ajax…

1

TFS Build configuration issue for SharePoint

This post is a contribution from Sohail Sayed, an engineer with the SharePoint Developer Support team We recently worked on an issue with a customer configuring TFS build for SharePoint 2013 Customer followed the article https://msdn.microsoft.com/en-us/library/ff622991.aspx There seems to be some changes compared to this article for resolving the SharePoint reference assemblies which I have…

0

Fixing Client secret expiration errors for Provider hosted add-in on SharePoint Online.

This post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer Support team You have a  Provider hosted add-in for SharePoint Online hosted in Azure or public facing IIS Server and it fails due to ClientSecret expiry. You will see the below error Invalid issuer or signature. at Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityTokenHandler.VerifySignature(String signingInput, String signature,…

0

How to get WebsCount and other details from SharePoint online using Tenant Administration API

This post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer Support team Prior to CSOM ver 16.1.4727.1000, we can get count of all sites in tenant in SharePoint Online Tenant using SiteProperties.WebsCount. You can find Powershell sample at below link https://gallery.technet.microsoft.com/office/How-to-get-all-the-tenant-2999c21b With CSOM ver 16.1.4727.1000 and SPO Service dated 12/20/2016 onwards,…

0

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