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
Gauri Kasat 20Gauri Kasat 20 

Uploading file from salesforce REST API to Sharepoint

Hello,

I have a lightning component from which I upload a file and store it to content version. I need to upload the same file in SharePoint but I am getting BAD REQUEST error. 

How should I set the content for a file and how to write the API for the same from APEX?


TIA
 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Gauri,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/250293/sharepoint-integration-from-apex

http://ibirdstechshare.blogspot.com/2019/04/sharepoint-integration-with-salesforce.html

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 the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas