Newer Version Available

This content describes an older version of this product. View Latest

Entering Salesforce Connection Information

In order to retrieve or deploy metadata components, you need to edit build.properties to point to a Salesforce organization:

  1. Go to the location where you extracted the Force.com Migration Tool files and open the sample subdirectory.
  2. Open build.properties in a text editor and substitute a valid Salesforce username and password. If you are using a security token, paste the 25-digit token value to the end of your password.
Parameter Value
sf.username The salesforce.com username for login. The username associated with this connection must have the “Modify All Data” permission. Typically, this is only enabled for System Administrator users. When connecting to a sandbox instance your sandbox name is appended to your username. For example, if your production username is foo@salesforce.com, and one of your sandboxes is called bar, then your sandbox username is foo@salesforce.com.bar.
sf.password The password you use to log into the organization associated with this project. If you are using a security token, paste the 25-digit token value to the end of your password.
sf.serverurl The salesforce server URL. Use https://login.salesforce.com to connect to a production or Developer Edition organization. To connect to a sandbox instance, change this to https://test.salesforce.com.