All Questions
9 questions
0
votes
0
answers
156
views
Integration batch job + Data Encryption : Need some suggestion
I have written a batch job to push Open Case record every one hr from Salesforce to External system using REST API. I need to Encrypte the data and push it to the external system. Below is the Class ...
2
votes
2
answers
3k
views
How to get Binary Data to submit to REST API
I'm attempting to use curl and multipart message to attach files to a created record. I am successfully able to do so, however the file is corrupted when I view it. I think I may not be getting the ...
0
votes
1
answer
756
views
Sending PDF file from Salesforce to XERO, but it's not happening
I want to send PDF file which is generated by VF page from Salesforce to XERO.
But I'm trying to send but it's not happening
XERO syntax, it receives like below format
POST /api.xro/2.0/Receipts/...
2
votes
0
answers
505
views
Sending 100KB attachment via HTTPRequest throws System.UnexpectedException
I'm trying to upload an attachment from SF to a third party server using REST API,
First, my third party does not support base64 content-transfer so I cannot send from SF a base64 attachment.
...
1
vote
0
answers
813
views
Display a PDF in Salesforce from Blob data
For our project, we need to get a PDF via API from an external private filestore, and display it within a Lightning Component. With the blob that is returned, if I set that to the src of an iFrame, it ...
0
votes
1
answer
984
views
How to Upload ContentVersion into OneDrive using Apex?
I am unable to send a png file from Salesforce ContentVersion to Microsoft OneDrive. Below is my code:
for (ContentVersion cv : ListFilesToBeUploaded)
{
Http http = new Http();
httpRequest ...
4
votes
4
answers
23k
views
Send Blob file via Apex Rest Callout
I'm trying to send a Blob Apex REST callout and it is keep failing. I tried all the examples in the web but didn't work. What is the standard and correct way to send Blob data via REST callouts?
//...
0
votes
0
answers
803
views
Corrupted file error after creating Attachment from data(attachment) from Other SalesForce Instance through Rest Api
We are facing issue when we create Attachment record in Apex, using the data that we get from Rest Api from another instance. Tried with Blob.ValueOf(responsebody), EncodingUtil.base64decode(...
10
votes
2
answers
10k
views
Upload an Attachment via the Rest API
I'm having an issue uploading attachments via the REST API. When trying to upload attachment data (i.e. data about the attachment and the associated base64 binary data) I'm getting a 400 result (Bad ...