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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Change Content-Type in SAPOdata call

bot1q
11-Garnet

Change Content-Type in SAPOdata call

Hello,

 

I currently try to upload an image to SAP via Odata as Attachment.

Everything is fine, but i have one issue.

The SAP Endpoint expect a Content-Type : (f.e) image/png...

But the service send everytime application/json.

 

I've allready changed the getCustomHeaderParameters... still not working. Any Idea how i can change the content type?

 

bot1q_0-1590487914084.png

 

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

Hi @bot1q.

 

What version of ThingWorx are you running?  Beginning with ThingWorx 8.4, we introduced a tool called Flow that may better address your issue.  However, there have been improvements to Flow in the ThingWorx 8.5 release, as well as the upcoming 9.0 release.

 

Regards.

 

--Sharon

VladimirRosu
19-Tanzanite
(To:bot1q)

Is that the Integration Runtime SAP Odata connector?

If you don't have access to Flow, please try the standard ContentLoader snippets.

When I need to add my own headers so that the call would work, I use those instead.

 

Let us know what you managed to do.

Announcements


Top Tags