Skip to main content

Posts

Showing posts from September, 2018

Upload files to Salesforce Feed using Chatter connect API and test using CURL

Have you ever came across a requirement to upload files to Salesforce feed from external system? If yes , here is a step by step approach to implement this use case. With lightning roll out Salesforce is converting attachments to files. Any attachment added also creates a file. Both files and attachment  are in sync , if you add/delete a record in file it will add/delete a attachment and vice versa. Gone those days when you couldn't  attach an attachment having size more than 5MB. With Files you have got the option to upload / attach a file up to 2 GB. In order to upload files from external system , we can use the Salesforce connector which is exposed using Enterprise WSDL and directly upload to Attachment records , which in turn creates a file record. In order to test it , you need to install cURL command prompt like CYGWIN Terminal. Here is the link to download it. Use these steps to test the flow using cURL. Step 1: Login using OAuth.(Create a connected ap...