I have a scenario where I have to save my records for five objects namely contact , account , lead , campaign and campaign members as a backup on google drive in a .csv format for each object separately.

This will be daily process , is their a way I can achieve the above mentioned from my Salesforce Org.

  • Yes you need to write code for this. Did you tried anything? – Tushar Sharma May 31 '16 at 8:08
  • There is Command Line Interface (CLI) for [dataloader] (help.salesforce.com/apex/…) which would help you take backup of your objects in local machine. And you can schedule this job using windows scheduler to run daily or on any interval. But I am not sure about how will you upload those CSVs to google drive. – Saumya Ranjan Satapathy May 31 '16 at 8:12
  • @TusharSharma yes, I'am trying to create a .csv for diffrent objects but how t save into google drive is still pending . Would it be good to create .csv in salesforce or should we do it outside salesforce since their are a large number of records present in the salesforce org which have to be processed – Jitesh Goel May 31 '16 at 8:20
  • first you need to do auth process with drive then after that schedule a batch how will create csv and upload that to drive. – Tushar Sharma May 31 '16 at 8:22
  • 1
    Here is a link which provides details about uploading files from salesforce to google drive. – Saroj Bera May 31 '16 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.