New answers tagged httprequest
0
votes
ERROR_HTTP_414 - <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre> on VS Code
Just had the same issue. After using sfdx force:source:push --loglevel trace we found an absurdly long query in User/.sfdx/sfdx.log:
"request: {\"method\":\"GET\",\"url\&...
3
votes
Accepted
Convert PDF file returned as byte[] in apex callout into blob and Save as file
You don't need to do anything special, just get the body's Blob content:
Blob fileContent = res.getBodyAsBlob();
ContentVersion cv = new ContentVersion(VersionData=fileContent);
// Don't forget the ...
Top 50 recent answers are included
Related Tags
httprequest × 398apex × 198
callout × 89
rest-api × 62
httpresponse × 47
integration × 32
http × 32
json × 27
api × 25
marketing-cloud × 23
visualforce × 21
webservices × 21
rest × 19
httpcalloutmock × 19
httppost × 16
unit-test × 15
trigger × 14
ssjs × 11
future × 11
batch × 10
ampscript × 9
namedcredentials × 9
post × 9
soap-api × 8
oauth2 × 8