You need to sign in to do that
Don't have an account?
Soundar
Csv File upload in visualforce page without Using Apex Class
create VF page for importing the excel sheet to Salesforce.
Please don’t use the Apex and everything should in VF page.
Note: If CSV file having Id , it should update the old record's .
If don't have an Id it's should create a new record in salesforce.
Thanks In Advance.
Please don’t use the Apex and everything should in VF page.
Note: If CSV file having Id , it should update the old record's .
If don't have an Id it's should create a new record in salesforce.
Thanks In Advance.
There is no standard functionality in VF for this, without using Apex.
One way to import data without using Apex, and data loader is Data Import Wizard in setup.From your VF page give a link to navigate to Data Import Wizard page( /ui/setup/dataimporter/DataImporterAdminLandingPage ) and there user can import CSV files. Make sure user must have required permissions to view stup, Import Wizard.
I didn't try and test this, but hope it would work. Try it and let me know if it works.
https://help.salesforce.com/articleView?id=import_with_data_import_wizard.htm&language=en_US&type=0
Thanks,
Nagendra Prasad
Hi Nagendra Prasad,
Thanks for your quick response, i will check and confirm you ASAP .
Note: I have another one doubt also , can we use Jquery or javaScript to Achieve above Process.
Thanks a lot.
By using JS we can perform DMLs, but reading CSV, implementation is very complex in JS. For your requiremet Data Import Wizard is better option. For JS refer below links,
https://developer.salesforce.com/page/Building_Single_Page_Apps_with_JavaScript_and_Visualforce_Remote_Objects
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects_example_simple.htm
http://www.jitendrazaa.com/blog/salesforce/create-and-update-records-using-javascript-button-in-salesforce-ajax-toolkit/
yeah data Import Wizard Is the best way to import records, but My requirement is develop new data Uploader in visualforce Page. I will refer the above link you were sent (by using Java Script) . And Contact You ASAP.
Thanks a lot friend ...