cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Uploading Files to SharePoint via API

GBeltramini
3-Visitor

Uploading Files to SharePoint via API

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

2 REPLIES 2
slangley
23-Emerald II
(To:GBeltramini)

Hi @GBeltramini.

 

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

 

Regards.

 

--Sharon

 

slangley
23-Emerald II
(To:slangley)

Hi @GBeltramini.

 

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

 

Regards.

 

--Sharon

 

Top Tags