+ Start a Discussion
Gauri Kasat 20Gauri Kasat 20 

Uploading file from salesforce REST API to Sharepoint


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?

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.



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