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
S b 25S b 25 

I want to map fields like we do in dataloader in visualforce page

Hello,

When we use dataloader, after selecting the file, it will ask for a custom mapping where we select the right fields and then load the data.

Is it possible in visual force ? Any thoughts would be appreciated.

So basically, when we click on select file from a visual force page to bulk load the data, it should ask for custom mapping where we can map the fields and then load the data.

Thanks in advance !

Nagendra Singh 35Nagendra Singh 35
Hello,

You can achieve this in visualforce page by using a List of wrapper class in controller extension having size and first variable as CSV headers you have parsed, and then you can use the selected Sobject fields to save the file.

I hope this clears your doubt.