0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Auto config salesforce ant-dataloader and Backup Sobject Data

Posted at

Page Link

Auto config salesforce ant-dataloader and Backup Sobject Data

Topic

  1. Auto config dataloader.
  2. Backup salesforce sobject data.

Environment

  • Set up your java and ant environment.
  • You must install java and ant before use ant dataloader.
  • You not need to Install the dataloader.
  • Make sure you can login your sfdc. Test it : SFDC-XY > Login SFDC

Tips : You not need to Install the dataloader, Salesforcexytools integrates with dataloader.

Auto Config Dataloader

Open Sublime-Menu : SFDC-XY > Dataloader > Build Ant Dataloader Configuration

1539931429520

Select Your Sobjects and Select Start To Config, example:

1539931785518

You can find AntDataloader in ./sfdc-xy/AntDataloader Folder.

1539931980132

Run AntDataloader

Ant command

cd ./sfdc-xy/AntDataloader
ant

1539932235973

Run in sublime

Dataloader > Run Ant Dataloader
The data will be export to /sfdc-xy/AntDataloader/Export_YYYYMMDD_HHmm

1539932182175

config your soql

Open ./sfdc-xy/AntDataloader/build.xml

Add your export task, you can export sfdc sobject data easily.

    <target name="start_export">
        <!-- <export file="{FILE_NAME}" object="{SOBJECT_NAME}" soql="{SOQL}"/> -->
        <export file="Blog__c" object="Blog__c" soql="SELECT Id , Name , Title__c, Body__c FROM Blog__c"/>
        <export file="Log__c" object="Log__c" soql="SELECT Id , Name, Body__c FROM Log__c"/>
    </target>

Tips: Config the build.xml and copy Ant Dataloader to anywhere, and add your schedule job to export sfdc data.

Schedule Task , Auto Backup sfdc sobject data.

copy ./sfdc-xy/AntDataloader To any folder. and schedule task.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?