Skip to main content
1-Visitor
May 26, 2020
Question

Change Content-Type in SAPOdata call

  • May 26, 2020
  • 2 replies
  • 883 views

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

Support
June 11, 2020

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

19-Tanzanite
June 12, 2020

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.