You need to sign in to do that
Don't have an account?
ram d
how to upload excel file data into sales force custom object by using apex( by a cutom button on Custom object)
Hi all,
I need some help in "how to upload excel file data into sales force custom object by using apex( by a cutom button on Custom object)"
Any help much appreaciated !!!
Thanks in Advance
Ram
I need some help in "how to upload excel file data into sales force custom object by using apex( by a cutom button on Custom object)"
Any help much appreaciated !!!
Thanks in Advance
Ram
You can try the following steps :
Step 1 : Download the template from here (https://drive.google.com/file/d/0B5FQvDdE4z0PdFllT1g0aGNBN1k/view). Save the file in your desktop. Upload the file into Static Resources with the name "TestUploadTemplate".
Step 2 : Create an Apex Class named "FileUploader". Paste the code below and save it.
Step 3 : Create a Visualforce Page named "UploadAccounts". Paste the code below and save it.
Step 4 : Download the CSV file from here (https://drive.google.com/file/d/0B5FQvDdE4z0PeWdCNTlBV25UYTQ/view) for test method coverage. Upload the file with the name 'testMethodCSVUpload'.
Step 5 : Create an Apex Class as shown below for test coverage if you want to check the code coverage.
Thank You,
www.nubeselite.com
Development | Training | Consulting
Please mark this as solution if your problem is solved.