Category: Apex

Mar 27

Check daily limit in Salesforce org

Workbench will be used to track daily limits of a salesforce org. 1. Logged into the organization where you want to verify your limits. 2. Open workbench. url: 3. Accept any oauth prompts to complete authentication 4. Go to REST Explorer. 5. From the options presented select: /services/data/v47.0/limits 6. Click Execute. 7. All limits […]

Read Full
Apex to transfer Image
Nov 13

Salesforce apex to send image file to 3rd party using REST API

//attObj is an Object of Attachment object for which values will be coming from Visualforce page. //Attachment attObj = new attachment(); public pagereference customsave(){ String fileName =; Blob file_body = attObj.body; String targetURL = system.label.ImageUploadEndPointURL; //API End point URL String boundary = ‘—————————-741e90d31eff’; // assemble the body payload String header = ‘–‘+boundary+’\nContent-Disposition: form-data; name=”file”; […]

Read Full