function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BoopathyBoopathy 

Automatic file upload...!!

Hi Developers community,
 
I am new to SF and Apex programing..My requirement is to upload pdf files automatically form the system(PC) to Salesforce Opportunities files.I am wondering if this is possible..plz give your valuable ideas and suggestions.Thanks in advance.
 
Boopathy,
India.
Ron WildRon Wild
Yes, you can do that. 

You can write a client app that reads the files, converts them to base64 and makes a call to the Salesforce API to insert the file as an attachment to a record.

Then simply schedule the client app to run on a regular basis to look for new files for upload.


DevAngelDevAngel
Hi Boopathy,

Need more info. Automatically can't live alone. You must mean automatically in response to some other user interaction. File can be uploaded using the web services api. Look at the attachment object.

Cheers