You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was not sure where else to post this as this may very well be a fault from my end.
I'm trying to upload files from Salesforce through Apex. Apex is already wobbly with file upload through HTTPRequest, but this post seemed to have gotten to the bottom of it.
However in that post, the OP only had one parameter in the body, the file itself, whereas ilovepdf needs the file as well as the task ID which is where I'm having the problem.
I tried many ways to assemble the request body. At first I was getting only badRequest with Empty or incorrect task, but after fiddling around with the \r\n construction within the requestbody, I started getting code 500 errors.
Was not sure where else to post this as this may very well be a fault from my end.
I'm trying to upload files from Salesforce through Apex. Apex is already wobbly with file upload through HTTPRequest, but this post seemed to have gotten to the bottom of it.
However in that post, the OP only had one parameter in the body, the file itself, whereas ilovepdf needs the file as well as the task ID which is where I'm having the problem.
I tried many ways to assemble the request body. At first I was getting only badRequest with Empty or incorrect task, but after fiddling around with the \r\n construction within the requestbody, I started getting code 500 errors.
For your reference, this is my Apex code:
The text was updated successfully, but these errors were encountered: