The FuseIT.G4S.DataExportConsole.exe
application can be executed directly from the command prompt (via cmd window) or you can embed the command line in a script file.
Prerequisites
The Data Export Command Line tool requires the .NET Framework 3.5 to be available.
Without it you may see a message like:
"This app can't run on your PC
To find a version for your PC, check with the software publisher"
- Windows Server 2012 R2
See Enable .NET Framework 3.5 by using the Add Roles and Features Wizard
Usage
You can see argument help if you use:
...
The following arguments are required:
- /u:
Salesforce.com Partner API user name - /p:
Salesforce.com Partner API password - /t:
Salesforce.com Partner API security token - /e:
Salesforce binding environment. Required to be one of the following:- Production
- DeveloperEdition
- Sandbox
- Pre_release
- save path:
File path where the exported zip files will be saved (enclose in "speech marks", back slashes should be escaped)
...
The connection string can be generated in the FuseIT SFDC Explorer, and then copied into the FuseIT.SFDC.DataExportConsole.exe.config
(See Login Section). To add a connection string to the FuseIT.SFDC.DataExportConsole.exe
, browse to the directory where the FuseIT.SFDC.DataExportConsole.exe
was installed and open the FuseIT.SFDC.DataExportConsole.exe.config
file. Find the element <connectionStrings> and insert your connection string within this tag (see screenshot below).
An example connection string (without proxy authentication):
...
- /c:
connectionstringname: The name of the connection string - as specified in theFuseIT.SFDC.DataExportConsole.exe.config
- Save path
Server file path where the exported zip files will be saved (enclose in "speech marks", back-slashes should be escaped)
...
Once the command line tool is configured you can automate the process by scheduling a task in Windows to invoke it at the required date and time.
Configuration Options
bufferSize - The download buffer size (in kilobytes). Defaults to 16 kilobytes. Reducing may help avoid timeout issues. Increasing can improve download speed.
Code Block title Buffer Size <!--Set the download block size. Default set to 16k bytes --> <add key="bufferSize" value="16"/>
maxRetry - How many times to retry a download that is failing. Defaults to 3.
Code Block title Max Retry <!--Set the maximum retry value. If the maxRetry value is 0 the download operation will be tried only once. Default value is set to 3 --> <add key="maxRetry" value="3"/>