• alessio.valentini
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies

Hi everyone,

 

I have a big problem that I cannot get my head around:

 

We created a REST API that returns an object with a rich text field in it. It displays beautifully without any trouble IF you are logged in to Salesforce.com directly. If however you are only using OAUTH to authenticate it cannot access the images of this rich text field.

 

Here an example JSON for a rich text field as we get it in html format:

 

...

"article" : "<p class=\"MsoNormal\"></p>\n<p class=\"MsoNormal\" style=\"text-align: center; \"><img src=\"https://c.eu2.content.force.com/servlet/rtaImage?eid=a06b0000003Xvrq&amp;feoid=00Nb0000000yu5o&amp;refid=0EMb0000000Kyui\" alt=\"User-added image\"></img></p>"

...

 

How can it be that I can get all text and formatting ok but not access the image via OAUTH?

 

Any help would be greatly appreciated!

 

Florian