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
ab79ab79 

Automate weekly export

Is there a supported way to automate the download of the weekly export files?  (Setup > Data Management > Data Export)  Thanks
kingkong94538kingkong94538

You can call APEX Data Loader APIs from commandline. So, you write your queries and set up a cronjob to schedule run apex data loader to get you whatever you need. The data export will be in the files (in your specified directories).

The only issue is what if it fails to run and something happens during the data loader execution. For that, you'd have to write a program for example in java and handle error appropriately. You'd do this if it's mission critical. Otherwise, my first suggestion above should be enough to cater your needs.