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
Srinath R 9Srinath R 9 

Custom Data Loader using VF page - Load Master and Detail from single file

Hi All,

I have a requirement to build a custom data loader in Salesforce where by the user is provided with a VF page with a browse button. The user would select the file. The file would contain details about Opportunity and Opportunity Products in the same file. On click of 'Go' button after selecting the file , the data from the file should be spilt across the master object - Opportunities and Detail Object - Opportunity Line Items and then upload to Salesforce.

Any errors which occur during the processing should be flagged off and sent to the user in an email.

If there are any errors on the line items (Opportunity Prodcuts) , the Opportunity itself should not get loaded.

How is this possible in VF?

Srinath R