[SalesForce] Upload files to sharepoint from Salesforce and access them from salesforce

User uploads files in SalesForce. But it should actually save to SharePoint. User will not be knowing that, file is being saved in SharePoint and Only the Reference to the files will be in Salesforce.

After save, he can access all these files and when he clicks the file, it should pull the data from SharePoint and display it for him.

i have already gone through these links:
http://goldeninsights.com/2011/02/24/getting-sharepoint-to-talk-to-salesforce-on-the-cheap-part-1/#comment-6620

http://goldeninsights.com/2011/03/22/getting-sharepoint-to-talk-to-salesforce-on-the-cheap-part-ii/

But my client is not ready for this solutions as there seems to be no security.

Best Answer

I have solved it myself after a long research. The solution is to get connected to SharePoint Online with OAuth and leverage the power of SharePoint 2013 REST APIs. Features covered:

  • Get authenticated
  • Upload files with metadata
  • Retrieve Files with metadata
  • check permissions

I have put all of my effort results as posts on my blog. Below are the blog post links.

SharePoint Online (O365) OAuth Authentication | Authorizing REST API calls against SharePoint Online Site | Get Access token from SharePoint Online | Set up OAuth for SharePoint Online Office 365

Complete SharePoint 2013 REST API Reference