A Salesforce Apex class and Visualforce page for upserting contact records from a CSV file based on the external id field.
By: Pablo Sagredo
This repository contains both an Apex class and a Visualforce page designed to process and insert data from a CSV file into Salesforce Contact objects. It includes methods for reading CSV files, validating and transforming data, inserting records, and displaying the results.
- Upload CSV files and validate them before insertion.
- Able to auto map the fields
- Handle various field types, including dates, datetimes, booleans, and textareas.
- Display detailed messages about the insertion process.
- Utilizes the external id field for upserting records.
-Upload CSV:
-CSV is uploaded and validated:
-Result (Inserted + Updated):
Clone the repository to your local machine using Git:
git clone [repository URL]

