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
Priya MishraPriya Mishra 

Data Upload via the visualforce Page to a custom object

Hi All,

My requirement is to Uplaod the csv file through the vf page to custom object and the file header should be read the value which are saved in a custom object. like dynamic uplaod via vf page. please help me with the sample code.

Thanks in advance.
priya
VinayVinay (Salesforce Developers) 
Hi Priya,

Review below examples that can help you.

https://developer.salesforce.com/forums/?id=9062I000000g8AhQAI
https://developer.salesforce.com/forums/?id=906F00000009DnSIAU
https://salesforce.stackexchange.com/questions/101994/link-to-custom-visualforce-page-to-upload-an-attachment-for-the-source-record
https://www.sfdcpoint.com/salesforce/import-csv-file-using-apex-visualforce/

Thanks,
Priya MishraPriya Mishra
But in those examples just uplading the data statically i want to update it data with dyanmic header values.
VinayVinay (Salesforce Developers) 
This might not be possible to update dynamically from csv file.