I am trying to get the base64 encoded version of a Salesforce Classive File Upload field type via the Salesforce REST API from one org to another.
However when I query the rest API for the knowledge article type, I am returned an endpoint as the result for the Body__s field, and that endpoint does not return a base64 encoded version of the body either.
If I query the body__s via workbench query or through Dev Console query, I do get the base64 encoded body__s response.
Does the REST API not support querying on the Body__s field of Salesforce Classic Knowledge articles? Why can I query this through dev console and workbench, but not through REST Explorer or a call to the REST API?
The response I receive is:
When going to the link provided in the response, we receive the following response:
HTTP/1.1 200 OK Date: Wed, 24 Jun 2020 19:51:31 GMT Strict-Transport-Security: max-age=31536002; includeSubDomains Public-Key-Pins-Report-Only: pin-sha256="MASK"; pin-sha256="MASK"; pin-sha256="MASK"; max-age=86400; includeSubDomains; report-uri="https://a.forcesslreports.com/hpkp-report/MASK"; Expect-CT: max-age=86400, report-uri="https://a.forcesslreports.com/Expect-CT-report/MASK" X-Robots-Tag: none Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private Set-Cookie: BrowserId=MASK; domain=.salesforce.com; path=/; expires=Thu, 24-Jun-2021 19:51:31 GMT; Max-Age=31536000 Sforce-Limit-Info: api-usage=115/10470000 Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document Transfer-Encoding: chunked