Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Tamil's user avatar
  • 750
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 ...
Shuaib Ahmed's user avatar
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/...
user89211's user avatar
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. ...
beMe's user avatar
  • 21
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 ...
Luke's user avatar
  • 413
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 ...
Prateek Garg's user avatar
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? //...
MalindaL's user avatar
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(...
Shrivaths Kulkarni's user avatar
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 ...
contactmatt's user avatar
  • 1,069