Skip to main content
1-Visitor
March 8, 2022
Question

Uploading Files to SharePoint via API

  • March 8, 2022
  • 1 reply
  • 1266 views

Hi Thingworx Community,

 

Has this been achieved by someone via Thingworx? 

 

A few different approaches have already been tested, for example:

1. Using directly the PostImage snippet to generate a POST request to the SharePoint API

2. Uploading a file via Repository, converting to Binary (via snippet service) and using POST service snippet

 

Those approaches didn't yield results as the SharePoint API doesn't return anything meaningful in the RestAPI responses. I wanted to know if someone has achieved that use case and what might be failing in my approach. 

 

 

Regards

1 reply

Support
March 10, 2022

Hi @GBeltramini.

 

What endpoint are you trying to hit?  Have you looked at this information from Microsoft's site? 

 

Regards.

 

--Sharon

 

Support
March 15, 2022

Hi @GBeltramini.

 

Did you find the link previously provided helpful?  Do you have additional questions?

 

Regards.

 

--Sharon