You need to sign in to do that
Don't have an account?
Nitesh Chaure
Could You help me to find solution for given problem statement.
Hi Friends,
I have a requirement to create batch apex code to import csv file without use of visualforce page i.e. directly from system through file path. And schedule this batch class to import csv file automatically after 2 days.
Guys please help me for this problem statement as early as possible.
Thank you much in advance for your valuable help.
Regards,
Nitesh
I have a requirement to create batch apex code to import csv file without use of visualforce page i.e. directly from system through file path. And schedule this batch class to import csv file automatically after 2 days.
Guys please help me for this problem statement as early as possible.
Thank you much in advance for your valuable help.
Regards,
Nitesh
You can very well schedule your uploads based on your need.
Read more about it in the link below.
http://resources.docs.salesforce.com/206/17/en-us/sfdc/pdf/salesforce_data_loader.pdf
Hope this helps.
You can run a schedule job using Dataloader or Jitterbit free version to upload the CSV and attach/map with Salesforce record. You can also utilize the following example if you required custom logic once data is uploaded.
https://developer.financialforce.com/customizations/importing-large-csv-files-via-batch-apex/
Please Mark this as a solution if this helps you.
Maf
Sorry but I need to do this using Batch class only.
So I do not use Data Loader to import csv file and schedule it.
I am not able to get the file path inside apex class variable.
You won't be able to do that without a SOAP/REST call. How would you control login etc as this happens programatically.
Maf