function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDave_126SFDave_126 

Issue pulling files thru OneDrive REST API due to max size limits and extended mimeType attributes

I'm encountering a number of issues while attempting to pull files directly into Salesforce Apex using OneDrive REST API where I get max size limit error messages and other abnormalities such as additional whitespacing if the Request Header is set to 'application/json' instead of 'application/octet-stream' or other mimeTypes that OneDrive uses for describing the file metadatamax size limit error
.twb file example with whitespace when using 'application/json' as Request Header
Whitespace issue goes away when using 'application/octet-stream' instead which is what MS Graph mimeType is set to