function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David Catindoy 101David Catindoy 101 

SharePoint Authentication in Apex

Hi All,

Does anybody here know how to get access token/authenticate a user from Apex code? I am planning to create a custom integration to automatically create a folder and push files from Salesforce to Sharepoint. Any help is appreciated a lot.

Thanks!
Khan AnasKhan Anas (Salesforce Developers) 
Hi David,

I trust you are doing very well.

Please refer to the below links with a similar discussion which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/54989/upload-files-to-sharepoint-from-salesforce-and-access-them-from-salesforce

https://blog.trigent.com/sharepoint-online-and-salesforce-integration/

https://dzone.com/articles/7-steps-to-integrate-salesforce-with-sharepoint

http://www.algoworks.com/blog/integrate-salesforce-and-sharepoint-online/


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas